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/client.cpp | |
parent | ff67cb1d126ac5b26907816ddd094c517ae5216d (diff) | |
download | manaplus-84b7634a85d0474d83af7002ee7639cf421686bf.tar.gz manaplus-84b7634a85d0474d83af7002ee7639cf421686bf.tar.bz2 manaplus-84b7634a85d0474d83af7002ee7639cf421686bf.tar.xz manaplus-84b7634a85d0474d83af7002ee7639cf421686bf.zip |
Add option for enable/disable remote commands.
In tmw remote commands disabled by default.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index b8e75ee2c..76bdf0cfa 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -772,6 +772,8 @@ void Client::stateConnectServer1() settings.persistentIp = mCurrentServer.persistentIp; settings.supportUrl = mCurrentServer.supportUrl; settings.updateMirrors = mCurrentServer.updateMirrors; + settings.enableRemoteCommands = serverConfig.getValue( + "enableRemoteCommands", 1); if (settings.options.username.empty()) { |