mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Rework user limit and checks around join process
This commit is contained in:
@@ -368,6 +368,7 @@ public:
|
||||
void hudSetHotbarImage(RemotePlayer *player, const std::string &name);
|
||||
void hudSetHotbarSelectedImage(RemotePlayer *player, const std::string &name);
|
||||
|
||||
/// @note this is only available for client state >= CS_HelloSent
|
||||
Address getPeerAddress(session_t peer_id);
|
||||
|
||||
void setLocalPlayerAnimations(RemotePlayer *player, v2f animation_frames[4],
|
||||
@@ -611,6 +612,10 @@ private:
|
||||
|
||||
void handleChatInterfaceEvent(ChatEvent *evt);
|
||||
|
||||
/// @brief Checks if user limit allows a potential client to join
|
||||
/// @return true if the client can NOT join
|
||||
bool checkUserLimit(const std::string &player_name, const std::string &addr_s);
|
||||
|
||||
// This returns the answer to the sender of wmessage, or "" if there is none
|
||||
std::wstring handleChat(const std::string &name, std::wstring wmessage_input,
|
||||
bool check_shout_priv = false, RemotePlayer *player = nullptr);
|
||||
|
Reference in New Issue
Block a user