diff options
author | Golrag <golrag.jeremy@gmail.com> | 2015-02-23 20:23:33 +0100 |
---|---|---|
committer | Golrag <golrag.jeremy@gmail.com> | 2015-02-23 22:25:16 +0100 |
commit | 78c7094b019bf300c0b46586e28ecbbea93be56c (patch) | |
tree | 20750705415075e0c3e4422a8fa048f08ff5dd30 /src/server/scripts | |
parent | 880be1bc63417290bcaae5527ddcd2995a3afeb0 (diff) |
Core/Packets: SMSG_NOTIFICATION
Diffstat (limited to 'src/server/scripts')
-rw-r--r-- | src/server/scripts/Commands/cs_message.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/scripts/Commands/cs_message.cpp b/src/server/scripts/Commands/cs_message.cpp index 30cc075692a..519ae1e1f97 100644 --- a/src/server/scripts/Commands/cs_message.cpp +++ b/src/server/scripts/Commands/cs_message.cpp @@ -157,9 +157,7 @@ public: std::string str = handler->GetTrinityString(LANG_GLOBAL_NOTIFY); str += args; - WorldPacket data(SMSG_NOTIFICATION, (str.size()+1)); - data << str; - sWorld->SendGlobalMessage(&data); + sWorld->SendGlobalMessage(WorldPackets::Chat::PrintNotification(str).Write()); return true; } @@ -172,9 +170,7 @@ public: std::string str = handler->GetTrinityString(LANG_GM_NOTIFY); str += args; - WorldPacket data(SMSG_NOTIFICATION, (str.size()+1)); - data << str; - sWorld->SendGlobalGMMessage(&data); + sWorld->SendGlobalGMMessage(WorldPackets::Chat::PrintNotification(str).Write()); return true; } |