diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-21 15:49:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-21 15:49:23 +0300 |
commit | 84b7634a85d0474d83af7002ee7639cf421686bf (patch) | |
tree | c1d4bed2c70f26b19db7758ad23aa4ace9c3d6c7 /src/net/ea/playerrecv.cpp | |
parent | ff67cb1d126ac5b26907816ddd094c517ae5216d (diff) | |
download | mv-84b7634a85d0474d83af7002ee7639cf421686bf.tar.gz mv-84b7634a85d0474d83af7002ee7639cf421686bf.tar.bz2 mv-84b7634a85d0474d83af7002ee7639cf421686bf.tar.xz mv-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.cpp | 6 |
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)) { |