Output DB/ScriptLib versions in ".server info" command.

Required support by used scripting library.
This commit is contained in:
VladimirMangos 2008-10-26 16:17:33 +03:00
parent 24549669a9
commit 6f190fedd4
15 changed files with 62 additions and 17 deletions

View file

@ -458,17 +458,9 @@ bool Master::_StartDB()
///- Clean the database before starting
clearOnlineAccounts();
QueryResult* result = WorldDatabase.Query("SELECT version FROM db_version LIMIT 1");
if(result)
{
Field* fields = result->Fetch();
sLog.outString("Using %s", fields[0].GetString());
delete result;
}
else
sLog.outString("Using unknown world database.");
sWorld.LoadDBVersion();
sLog.outString("Using %s", sWorld.GetDBVersion());
return true;
}