Core/ChatHandler: Allow GM/server-commands to be executed through whisper-channels - patch by Ramus

Closes issue 5006.

--HG--
branch : trunk
This commit is contained in:
click
2010-12-11 03:25:31 +01:00
parent a791df6415
commit 0e33e73d39

View File

@@ -224,6 +224,9 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recv_data)
recv_data >> to;
recv_data >> msg;
if (ChatHandler(this).ParseCommands(msg.c_str()) > 0)
break;
if (_player->getLevel() < sWorld.getIntConfig(CONFIG_CHAT_WHISPER_LEVEL_REQ))
{
SendNotification(GetTrinityString(LANG_WHISPER_REQ), sWorld.getIntConfig(CONFIG_CHAT_WHISPER_LEVEL_REQ));
@@ -504,6 +507,9 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket & recv_data)
recv_data >> channel;
recv_data >> msg;
if (ChatHandler(this).ParseCommands(msg.c_str()) > 0)
break;
if (!processChatmessageFurtherAfterSecurityChecks(msg, lang))
return;