Core/Log: Log all character kicks to "network.kick" category

(cherry picked from commit 31018c3652)
This commit is contained in:
jackpoz
2020-04-08 21:05:01 +02:00
committed by Shauren
parent dbb0f399fa
commit 68d947d42f
11 changed files with 37 additions and 33 deletions

View File

@@ -377,7 +377,7 @@ public:
target->SetName(newName);
if (WorldSession* session = target->GetSession())
session->KickPlayer();
session->KickPlayer("HandleCharacterRenameCommand GM Command renaming character");
}
else
{
@@ -861,7 +861,7 @@ public:
{
characterGuid = player->GetGUID();
accountId = player->GetSession()->GetAccountId();
player->GetSession()->KickPlayer();
player->GetSession()->KickPlayer("HandleCharacterEraseCommand GM Command deleting character");
}
else
{

View File

@@ -953,7 +953,7 @@ public:
else
handler->PSendSysMessage(LANG_COMMAND_KICKMESSAGE, playerName.c_str());
target->GetSession()->KickPlayer();
target->GetSession()->KickPlayer("HandleKickPlayerCommand GM Command");
return true;
}