mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
refactor(Core/Chat): PSendSysMessage to fmt (#19449)
* refactor(Core/Chat): PSendSysMessage to `fmt`
This commit is contained in:
@@ -610,7 +610,7 @@ void WorldSession::HandleCharacterAuraFrozen(PreparedQueryResult result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
std::string player = fields[0].Get<std::string>();
|
||||
handler.PSendSysMessage(LANG_COMMAND_FROZEN_PLAYERS, player.c_str());
|
||||
handler.PSendSysMessage(LANG_COMMAND_FROZEN_PLAYERS, player);
|
||||
} while (result->NextRow());
|
||||
}
|
||||
|
||||
@@ -1402,11 +1402,11 @@ void WorldSession::HandleSetRaidDifficultyOpcode(WorldPacket& recv_data)
|
||||
switch (group->GetDifficultyChangePreventionReason())
|
||||
{
|
||||
case DIFFICULTY_PREVENTION_CHANGE_BOSS_KILLED:
|
||||
ChatHandler(this).PSendSysMessage("Raid was in combat recently and may not change difficulty again for %u sec.", preventionTime);
|
||||
ChatHandler(this).PSendSysMessage("Raid was in combat recently and may not change difficulty again for {} sec.", preventionTime);
|
||||
break;
|
||||
case DIFFICULTY_PREVENTION_CHANGE_RECENTLY_CHANGED:
|
||||
default:
|
||||
ChatHandler(this).PSendSysMessage("Raid difficulty has changed recently, and may not change again for %u sec.", preventionTime);
|
||||
ChatHandler(this).PSendSysMessage("Raid difficulty has changed recently, and may not change again for {} sec.", preventionTime);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user