summaryrefslogtreecommitdiff
path: root/src/net/ea/playerrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-21 15:49:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-21 15:49:23 +0300
commit84b7634a85d0474d83af7002ee7639cf421686bf (patch)
treec1d4bed2c70f26b19db7758ad23aa4ace9c3d6c7 /src/net/ea/playerrecv.cpp
parentff67cb1d126ac5b26907816ddd094c517ae5216d (diff)
downloadmanaverse-84b7634a85d0474d83af7002ee7639cf421686bf.tar.gz
manaverse-84b7634a85d0474d83af7002ee7639cf421686bf.tar.bz2
manaverse-84b7634a85d0474d83af7002ee7639cf421686bf.tar.xz
manaverse-84b7634a85d0474d83af7002ee7639cf421686bf.zip
Add option for enable/disable remote commands.
In tmw remote commands disabled by default.
Diffstat (limited to 'src/net/ea/playerrecv.cpp')
-rw-r--r--src/net/ea/playerrecv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/ea/playerrecv.cpp b/src/net/ea/playerrecv.cpp
index a8b838a3f..1b7add026 100644
--- a/src/net/ea/playerrecv.cpp
+++ b/src/net/ea/playerrecv.cpp
@@ -247,8 +247,12 @@ void PlayerRecv::processPlayerClientCommand(Net::MessageIn &msg)
std::string cmd;
std::string args;
- if (settings.awayMode || settings.pseudoAwayMode)
+ if (settings.awayMode ||
+ settings.pseudoAwayMode ||
+ !settings.enableRemoteCommands)
+ {
return;
+ }
if (!parse2Str(command, cmd, args))
{