--- a/src/console_cmds.cpp Fri Apr 25 02:15:34 2008 +0000
+++ b/src/console_cmds.cpp Mon May 26 20:45:25 2008 +0000
@@ -1,6 +1,6 @@
/* $Id$ */
-/** @file console_cmds.cpp */
+/** @file console_cmds.cpp Implementation of the console hooks. */
#include "stdafx.h"
#include "openttd.h"
@@ -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;
}