(svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server.
authorrubidium
Sat, 17 May 2008 11:46:35 +0000
changeset 9271 2f273a3d7d4d
parent 9270 5e05a01d3556
child 9272 e64b518a7b54
(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
--- a/src/console_cmds.cpp	Sat May 17 09:39:29 2008 +0000
+++ b/src/console_cmds.cpp	Sat May 17 11:46:35 2008 +0000
@@ -536,7 +536,11 @@
 
 	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;
 }