mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Only allow players with shout to chat
Fix regression of commit
5e507c9829
"Add server side ncurses terminal"
which allowed all players, even those without a shout priv, to chat.
Fixes #3362.
This commit is contained in:
@@ -481,6 +481,7 @@ private:
|
||||
// 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,
|
||||
bool check_shout_priv = false,
|
||||
u16 peer_id_to_avoid_sending = PEER_ID_INEXISTENT);
|
||||
void handleAdminChat(const ChatEventChat *evt);
|
||||
|
||||
|
Reference in New Issue
Block a user