(svn r20975) -Add: logging of console output for remote admins (dihedral)

This commit is contained in:
rubidium
2010-10-17 17:43:01 +00:00
parent ad12a91cda
commit a5d414a734
6 changed files with 49 additions and 1 deletions

View File

@@ -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);