diff options
author | panaut0lordv <panaut0lordv@gmail.com> | 2009-03-21 00:48:52 +0100 |
---|---|---|
committer | panaut0lordv <panaut0lordv@gmail.com> | 2009-03-21 00:48:52 +0100 |
commit | 4da9844dfc25320313a22036191d701cb71718af (patch) | |
tree | 5d10f90c4e364d2eb5ba360c8603764368bd6e58 /src | |
parent | e409fb63e9fd47f4c586ab43ca4b42b9ca58b423 (diff) | |
parent | 44aa61b1006447506e833670e641fcb45d37538f (diff) |
Merge.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/Log.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 52715848e78..07e92564458 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -337,6 +337,9 @@ std::string Log::GetTimestampStr() void Log::outDB( uint8 type, const char * str, ... ) { + if(!type) + return; + if(!str) return; @@ -353,7 +356,7 @@ void Log::outDB( uint8 type, const char * str, ... ) return; LoginDatabase.PExecute("INSERT INTO logs (time, realm, type, string) " - "VALUES (%u, %u, %u, '%s');", time(0), realm, type, nnew_str); + "VALUES ("I64FMTD", %u, %u, '%s');", uint64(time(0)), realm, type, nnew_str); } void Log::outString( const char * str, ... ) |