fix(Core/Crash): remove unneeded hook OnPlayerChat (#2707)
This commit is contained in:
parent
6869848364
commit
17fc93d864
1 changed files with 0 additions and 4 deletions
|
|
@ -172,12 +172,8 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recvData)
|
|||
{
|
||||
std::string to, msg;
|
||||
recvData >> to >> msg;
|
||||
Player* receiver = ObjectAccessor::FindPlayerByName(to, false);
|
||||
|
||||
if (msg.empty())
|
||||
return;
|
||||
|
||||
sScriptMgr->OnPlayerChat(sender, type, lang, msg, receiver);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue