From f1e46c8f1ff92c03e844ef059ca59c9d2bd46c93 Mon Sep 17 00:00:00 2001 From: mns Date: Sat, 11 Dec 2010 04:58:37 +0300 Subject: [PATCH] [10853] Report about GM invisible state at login if enable. Signed-off-by: VladimirMangos --- src/game/CharacterHandler.cpp | 9 ++++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp index 4ad1bf451..54006e777 100644 --- a/src/game/CharacterHandler.cpp +++ b/src/game/CharacterHandler.cpp @@ -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()); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e9eb20623..74021c386 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10852" + #define REVISION_NR "10853" #endif // __REVISION_NR_H__