diff options
author | est31 <MTest31@outlook.com> | 2015-11-13 01:35:54 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-11-13 02:35:02 +0100 |
commit | 657a16d90c42afc212e70c594296b1e204545a4c (patch) | |
tree | 3c244b11f64bddb513a9e13bcce1c84996046811 /src/server.h | |
parent | 36855522a5382614c525c69dd884560a197b875d (diff) | |
download | minetest-657a16d90c42afc212e70c594296b1e204545a4c.tar.gz minetest-657a16d90c42afc212e70c594296b1e204545a4c.tar.bz2 minetest-657a16d90c42afc212e70c594296b1e204545a4c.zip |
Only allow players with shout to chat
Fix regression of commit
5e507c9829942c434a6f1ae7a4f3a488c7e50bef "Add server side ncurses terminal"
which allowed all players, even those without a shout priv, to chat.
Fixes #3362.
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index 5a19677cd..fd559ba14 100644 --- a/src/server.h +++ b/src/server.h @@ -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); |