summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 8c0b89b72..49e003427 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -536,7 +536,11 @@ DEF_CONSOLE_CMD(ConRcon)
if (argc < 3) return false;
- SEND_COMMAND(PACKET_CLIENT_RCON)(argv[1], argv[2]);
+ if (_network_server) {
+ IConsoleCmdExec(argv[2]);
+ } else {
+ SEND_COMMAND(PACKET_CLIENT_RCON)(argv[1], argv[2]);
+ }
return true;
}