mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 11:55:43 +00:00
fix(Core/Crash): remove unneeded hook OnPlayerChat (#2707)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user