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:
1 parent
a791df6415
commit
0e33e73d39
1 file changed
+6
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user