[10712] Startup checks for gossip_menu and gosip_menu_option table data.

Existance `gosup_menu` id refercned from gameobject field and unused meni ids
activated only with disabled LogFilter_DbStrictedCheck.
This commit is contained in:
VladimirMangos 2010-11-10 00:47:43 +03:00
parent 534ff29f15
commit a87648c56b
6 changed files with 67 additions and 14 deletions

View file

@ -512,12 +512,10 @@ bool ChatHandler::HandleServerLogFilterCommand(char* args)
{
if (!*args)
{
uint32 logfiler = sLog.getLogFilter();
SendSysMessage(LANG_LOG_FILTERS_STATE_HEADER);
for(int i = 0; i < LOG_FILTER_COUNT; ++i)
if (*logFilterData[i].name)
PSendSysMessage(" %-20s = %s",logFilterData[i].name,(logfiler & (1 << i)) !=0 ? GetMangosString(LANG_ON) : GetMangosString(LANG_OFF));
PSendSysMessage(" %-20s = %s",logFilterData[i].name, sLog.HasLogFilter(1 << i) ? GetMangosString(LANG_ON) : GetMangosString(LANG_OFF));
return true;
}