[10853] Report about GM invisible state at login if enable.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
mns 2010-12-11 04:58:37 +03:00 committed by VladimirMangos
parent c5a96cde5f
commit f1e46c8f1f
2 changed files with 7 additions and 4 deletions

View file

@ -774,15 +774,18 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder)
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
// show time before shutdown if shutdown planned.
if(sWorld.IsShutdowning())
if (sWorld.IsShutdowning())
sWorld.ShutdownMsg(true,pCurrChar);
if(sWorld.getConfig(CONFIG_BOOL_ALL_TAXI_PATHS))
if (sWorld.getConfig(CONFIG_BOOL_ALL_TAXI_PATHS))
pCurrChar->SetTaxiCheater(true);
if(pCurrChar->isGameMaster())
if (pCurrChar->isGameMaster())
SendNotification(LANG_GM_ON);
if (pCurrChar->isGMVisible())
SendNotification(LANG_INVISIBLE_INVISIBLE);
std::string IP_str = GetRemoteAddress();
sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid: %u)",
GetAccountId(), IP_str.c_str(), pCurrChar->GetName(), pCurrChar->GetGUIDLow());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10852"
#define REVISION_NR "10853"
#endif // __REVISION_NR_H__