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:
@@ -831,7 +831,7 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
||||
|
||||
// send server info
|
||||
if (sWorld->getIntConfig(CONFIG_ENABLE_SINFO_LOGIN) == 1)
|
||||
chH.PSendSysMessage("%s", GitRevision::GetFullVersion());
|
||||
chH.PSendSysMessage("{}", GitRevision::GetFullVersion());
|
||||
}
|
||||
|
||||
if (uint32 guildId = sCharacterCache->GetCharacterGuildIdByGuid(pCurrChar->GetGUID()))
|
||||
@@ -879,7 +879,7 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
||||
|
||||
// send new char string if not empty
|
||||
if (!sWorld->GetNewCharString().empty())
|
||||
chH.PSendSysMessage("%s", sWorld->GetNewCharString().c_str());
|
||||
chH.PSendSysMessage("{}", sWorld->GetNewCharString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1150,7 +1150,7 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
|
||||
|
||||
// send server info
|
||||
if (sWorld->getIntConfig(CONFIG_ENABLE_SINFO_LOGIN) == 1)
|
||||
chH.PSendSysMessage("%s", GitRevision::GetFullVersion());
|
||||
chH.PSendSysMessage("{}", GitRevision::GetFullVersion());
|
||||
|
||||
LOG_DEBUG("network.opcode", "WORLD: Sent server info");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user