mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10853] Report about GM invisible state at login if enable.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c5a96cde5f
commit
f1e46c8f1f
2 changed files with 7 additions and 4 deletions
|
|
@ -774,15 +774,18 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder)
|
||||||
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
|
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
|
||||||
|
|
||||||
// show time before shutdown if shutdown planned.
|
// show time before shutdown if shutdown planned.
|
||||||
if(sWorld.IsShutdowning())
|
if (sWorld.IsShutdowning())
|
||||||
sWorld.ShutdownMsg(true,pCurrChar);
|
sWorld.ShutdownMsg(true,pCurrChar);
|
||||||
|
|
||||||
if(sWorld.getConfig(CONFIG_BOOL_ALL_TAXI_PATHS))
|
if (sWorld.getConfig(CONFIG_BOOL_ALL_TAXI_PATHS))
|
||||||
pCurrChar->SetTaxiCheater(true);
|
pCurrChar->SetTaxiCheater(true);
|
||||||
|
|
||||||
if(pCurrChar->isGameMaster())
|
if (pCurrChar->isGameMaster())
|
||||||
SendNotification(LANG_GM_ON);
|
SendNotification(LANG_GM_ON);
|
||||||
|
|
||||||
|
if (pCurrChar->isGMVisible())
|
||||||
|
SendNotification(LANG_INVISIBLE_INVISIBLE);
|
||||||
|
|
||||||
std::string IP_str = GetRemoteAddress();
|
std::string IP_str = GetRemoteAddress();
|
||||||
sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid: %u)",
|
sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid: %u)",
|
||||||
GetAccountId(), IP_str.c_str(), pCurrChar->GetName(), pCurrChar->GetGUIDLow());
|
GetAccountId(), IP_str.c_str(), pCurrChar->GetName(), pCurrChar->GetGUIDLow());
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10852"
|
#define REVISION_NR "10853"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue