Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-07-24 20:57:52 +08:00
80 changed files with 867 additions and 922 deletions
@@ -827,7 +827,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()))
@@ -875,7 +875,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());
}
}
@@ -1145,7 +1145,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");
}