mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
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:
@@ -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