mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 22:49:39 -04:00
Merge pull request #14236 from Golrag/Notification1
Core/Packets: SMSG_NOTIFICATION
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "CharacterPackets.h"
|
||||
#include "ClientConfigPackets.h"
|
||||
#include "MiscPackets.h"
|
||||
#include "ChatPackets.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -654,12 +655,7 @@ void WorldSession::SendNotification(char const* format, ...)
|
||||
vsnprintf(szStr, 1024, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
size_t len = strlen(szStr);
|
||||
WorldPacket data(SMSG_NOTIFICATION, 2 + len);
|
||||
data.WriteBits(len, 13);
|
||||
data.FlushBits();
|
||||
data.append(szStr, len);
|
||||
SendPacket(&data);
|
||||
SendPacket(WorldPackets::Chat::PrintNotification(szStr).Write());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -675,12 +671,7 @@ void WorldSession::SendNotification(uint32 stringId, ...)
|
||||
vsnprintf(szStr, 1024, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
size_t len = strlen(szStr);
|
||||
WorldPacket data(SMSG_NOTIFICATION, 2 + len);
|
||||
data.WriteBits(len, 13);
|
||||
data.FlushBits();
|
||||
data.append(szStr, len);
|
||||
SendPacket(&data);
|
||||
SendPacket(WorldPackets::Chat::PrintNotification(szStr).Write());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user