From baff68179cd235d89596a010d2426cdb8587558d Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 May 2008 11:46:35 +0000 Subject: (svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server. --- src/console_cmds.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/console_cmds.cpp') 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; } -- cgit v1.2.3-54-g00ecf