From ff67cb1d126ac5b26907816ddd094c517ae5216d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Apr 2016 14:16:36 +0300 Subject: Disable remote chat commands in away mode. --- src/net/ea/playerrecv.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net') diff --git a/src/net/ea/playerrecv.cpp b/src/net/ea/playerrecv.cpp index 384f9aa16..a8b838a3f 100644 --- a/src/net/ea/playerrecv.cpp +++ b/src/net/ea/playerrecv.cpp @@ -24,6 +24,7 @@ #include "game.h" #include "notifymanager.h" +#include "settings.h" #include "soundmanager.h" #include "being/localplayer.h" @@ -246,6 +247,9 @@ void PlayerRecv::processPlayerClientCommand(Net::MessageIn &msg) std::string cmd; std::string args; + if (settings.awayMode || settings.pseudoAwayMode) + return; + if (!parse2Str(command, cmd, args)) { cmd = command; -- cgit v1.2.3-70-g09d2