refactor(Core/Chat): Move SendNotification to ChatHander (#19491)
* refactor(Core/Chat): Move SendNotification to ChatHander * Update Battleground.cpp * fix build * Update src/server/game/Chat/Chat.h
This commit is contained in:
parent
ebc6218275
commit
e4df159f5c
21 changed files with 96 additions and 75 deletions
|
|
@ -787,16 +787,6 @@ bool WorldSession::DisallowHyperlinksAndMaybeKick(std::string_view str)
|
|||
return false;
|
||||
}
|
||||
|
||||
void WorldSession::SendNotification(std::string_view str)
|
||||
{
|
||||
WorldPacket data(SMSG_NOTIFICATION, str.size() + 1);
|
||||
for (std::string_view line : Acore::Tokenize(str, '\n', true))
|
||||
{
|
||||
data << line.data();
|
||||
SendPacket(&data);
|
||||
}
|
||||
}
|
||||
|
||||
char const* WorldSession::GetAcoreString(uint32 entry) const
|
||||
{
|
||||
return sObjectMgr->GetAcoreString(entry, GetSessionDbLocaleIndex());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue