summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-21 14:16:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-21 14:26:49 +0300
commitff67cb1d126ac5b26907816ddd094c517ae5216d (patch)
tree666ef1d5b327ce15064cb717f298293589bfefa0 /src/net/ea
parent769194a9741c085a61716e43d3e2944c9573ce65 (diff)
downloadmanaplus-ff67cb1d126ac5b26907816ddd094c517ae5216d.tar.gz
manaplus-ff67cb1d126ac5b26907816ddd094c517ae5216d.tar.bz2
manaplus-ff67cb1d126ac5b26907816ddd094c517ae5216d.tar.xz
manaplus-ff67cb1d126ac5b26907816ddd094c517ae5216d.zip
Disable remote chat commands in away mode.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/playerrecv.cpp4
1 files changed, 4 insertions, 0 deletions
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;