summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-17 17:43:01 +0000
committerrubidium <rubidium@openttd.org>2010-10-17 17:43:01 +0000
commita5d414a73490d290965f714ccc3ab556ffa4bc7e (patch)
tree76cd7149e81bbd4af5f1693458d7268e6fd66795 /src/console.cpp
parentad12a91cdae152aff87404dce7718706b91d5cb4 (diff)
downloadopenttd-a5d414a73490d290965f714ccc3ab556ffa4bc7e.tar.xz
(svn r20975) -Add: logging of console output for remote admins (dihedral)
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/console.cpp b/src/console.cpp
index c7a1ffd74..a578008e5 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -112,6 +112,7 @@ void IConsolePrint(ConsoleColour colour_code, const char *string)
str_validate(str, str + strlen(str));
if (_network_dedicated) {
+ NetworkAdminConsole("console", str);
fprintf(stdout, "%s%s\n", GetLogPrefix(), str);
fflush(stdout);
IConsoleWriteToLogFile(str);