Created
April 24, 2010 19:34
-
-
Save DasBlub/377882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp | |
index ae7e3f1..f810636 100644 | |
--- a/src/game/CharacterHandler.cpp | |
+++ b/src/game/CharacterHandler.cpp | |
@@ -474,14 +474,14 @@ void WorldSession::HandleCharCreateOpcode( WorldPacket & recv_data ) | |
loginDatabase.PExecute("DELETE FROM realmcharacters WHERE acctid= '%d' AND realmid = '%d'", GetAccountId(), realmID); | |
loginDatabase.PExecute("INSERT INTO realmcharacters (numchars, acctid, realmid) VALUES (%u, %u, %u)", charcount, GetAccountId(), realmID); | |
- delete pNewChar; // created only to call SaveToDB() | |
- | |
data << (uint8)CHAR_CREATE_SUCCESS; | |
SendPacket( &data ); | |
std::string IP_str = GetRemoteAddress(); | |
- sLog.outBasic("Account: %d (IP: %s) Create Character:[%s]", GetAccountId(), IP_str.c_str(), name.c_str()); | |
- sLog.outChar("Account: %d (IP: %s) Create Character:[%s]", GetAccountId(), IP_str.c_str(), name.c_str()); | |
+ sLog.outBasic("Account: %d (IP: %s) Create Character:[%s] (guid: %u)", GetAccountId(), IP_str.c_str(), name.c_str(), pNewChar->GetGUIDLow()); | |
+ sLog.outChar("Account: %d (IP: %s) Create Character:[%s] (guid: %u)", GetAccountId(), IP_str.c_str(), name.c_str(), pNewChar->GetGUIDLow()); | |
+ | |
+ delete pNewChar; // created only to call SaveToDB() | |
} | |
void WorldSession::HandleCharDeleteOpcode( WorldPacket & recv_data ) | |
@@ -787,7 +787,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder) | |
SendNotification(LANG_GM_ON); | |
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()); | |
if(!pCurrChar->IsStandState() && !pCurrChar->hasUnitState(UNIT_STAT_STUNNED)) | |
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp | |
index a30ebc7..2ac744e 100644 | |
--- a/src/game/WorldSession.cpp | |
+++ b/src/game/WorldSession.cpp | |
@@ -302,6 +302,8 @@ void WorldSession::LogoutPlayer(bool Save) | |
if (_player) | |
{ | |
+ sLog.outChar("Account: %d (IP: %s) Logout Character:[%s] (guid: %u)", GetAccountId(), GetRemoteAddress().c_str(), _player->GetName() ,_player->GetGUIDLow()); | |
+ | |
if (uint64 lguid = GetPlayer()->GetLootGUID()) | |
DoLootRelease(lguid); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment