mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 12:42:43 -04:00
Core/Packets: moved chat packet building function to packet builder class
This commit is contained in:
@@ -482,7 +482,7 @@ public:
|
||||
char const* msg = "testtest";
|
||||
uint8 type = atoi(args);
|
||||
WorldPackets::Chat::Chat packet;
|
||||
ChatHandler::BuildChatPacket(&packet, ChatMsg(type), LANG_UNIVERSAL, handler->GetSession()->GetPlayer(), handler->GetSession()->GetPlayer(), msg, 0, "chan");
|
||||
packet.Initalize(ChatMsg(type), LANG_UNIVERSAL, handler->GetSession()->GetPlayer(), handler->GetSession()->GetPlayer(), msg, 0, "chan");
|
||||
handler->GetSession()->SendPacket(packet.Write());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user