mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10988] Propertly note for not loaded script library version.
* Better support localization in case built-in version notes. * Move script library version functions to ScriptMgr
This commit is contained in:
parent
6e241689e7
commit
d2b3977fee
10 changed files with 43 additions and 19 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include "ObjectAccessor.h"
|
||||
#include "Language.h"
|
||||
#include "AccountMgr.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "SystemConfig.h"
|
||||
#include "revision.h"
|
||||
#include "revision_nr.h"
|
||||
|
|
@ -99,9 +100,19 @@ bool ChatHandler::HandleServerInfoCommand(char* /*args*/)
|
|||
full = _FULLVERSION(REVISION_DATE,REVISION_TIME,REVISION_NR,"|cffffffff|Hurl:" REVISION_ID "|h" REVISION_ID "|h|r");
|
||||
else
|
||||
full = _FULLVERSION(REVISION_DATE,REVISION_TIME,REVISION_NR,REVISION_ID);
|
||||
|
||||
SendSysMessage(full);
|
||||
PSendSysMessage(LANG_USING_SCRIPT_LIB,sWorld.GetScriptsVersion());
|
||||
|
||||
if (sScriptMgr.IsScriptLibraryLoaded())
|
||||
{
|
||||
char const* ver = sScriptMgr.GetScriptLibraryVersion();
|
||||
if (ver && *ver)
|
||||
PSendSysMessage(LANG_USING_SCRIPT_LIB, ver);
|
||||
else
|
||||
SendSysMessage(LANG_USING_SCRIPT_LIB_UNKNOWN);
|
||||
}
|
||||
else
|
||||
SendSysMessage(LANG_USING_SCRIPT_LIB_NONE);
|
||||
|
||||
PSendSysMessage(LANG_USING_WORLD_DB,sWorld.GetDBVersion());
|
||||
PSendSysMessage(LANG_USING_EVENT_AI,sWorld.GetCreatureEventAIVersion());
|
||||
PSendSysMessage(LANG_CONNECTED_USERS, activeClientsNum, maxActiveClientsNum, queuedClientsNum, maxQueuedClientsNum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue