mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
refactor(Core/Chat): PSendSysMessage to fmt (#19449)
* refactor(Core/Chat): PSendSysMessage to `fmt`
This commit is contained in:
@@ -213,7 +213,7 @@ void Channel::JoinChannel(Player* player, std::string const& pass)
|
||||
playersStore[guid] = pinfo;
|
||||
|
||||
if (_channelRights.joinMessage.length())
|
||||
ChatHandler(player->GetSession()).PSendSysMessage("%s", _channelRights.joinMessage.c_str());
|
||||
ChatHandler(player->GetSession()).PSendSysMessage("{}", _channelRights.joinMessage);
|
||||
|
||||
WorldPacket data;
|
||||
MakeYouJoined(&data);
|
||||
@@ -364,7 +364,7 @@ void Channel::KickOrBan(Player const* player, std::string const& badname, bool b
|
||||
}
|
||||
else
|
||||
{
|
||||
ChatHandler(player->GetSession()).PSendSysMessage("Character %s has other faction!", badname.c_str());
|
||||
ChatHandler(player->GetSession()).PSendSysMessage("Character {} has other faction!", badname);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user