1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Put ChatEvent handler into own function

Comply with line limit.
This commit is contained in:
est31 2015-11-09 06:04:24 +01:00
parent 889f893ff3
commit 63e7137e3b
2 changed files with 22 additions and 15 deletions

View file

@ -476,6 +476,8 @@ private:
void DeleteClient(u16 peer_id, ClientDeletionReason reason);
void UpdateCrafting(Player *player);
void handleChatInterfaceEvent(ChatEvent *evt);
// This returns the answer to the sender of wmessage, or "" if there is none
std::wstring handleChat(const std::string &name, const std::wstring &wname,
const std::wstring &wmessage,