mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
36855522a5
commit
657a16d90c
3 changed files with 14 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue