summaryrefslogtreecommitdiff
path: root/src/net/ea/playerrecv.cpp
diff options
context:
space:
mode:
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))
{