From 657a16d90c42afc212e70c594296b1e204545a4c Mon Sep 17 00:00:00 2001 From: est31 Date: Fri, 13 Nov 2015 01:35:54 +0100 Subject: 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. --- src/server.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server.h') 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); -- cgit v1.2.3