* Do not print chat logs to console. It will simply screw up console output.

* Fix a possible crash in if/else checks in channel chat logging.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-31 09:18:03 +02:00
parent ba99171d5b
commit 6f5efa3c7a
2 changed files with 9 additions and 4 deletions

View File

@@ -837,7 +837,7 @@ void Log::outChat( const char * str, ... )
outTimestamp(chatLogfile);
va_list ap;
va_start(ap, str);
vfprintf(chatLogfile, str, ap);
fprintf(chatLogfile, str, ap);
fprintf(chatLogfile, "\n" );
fflush(chatLogfile);
va_end(ap);