fix(Core/Warden): FMT (#15254)
This commit is contained in:
@@ -240,14 +240,14 @@ void Warden::ApplyPenalty(uint16 checkId, std::string const& reason)
|
|||||||
{
|
{
|
||||||
if (Player const* plr = _session->GetPlayer())
|
if (Player const* plr = _session->GetPlayer())
|
||||||
{
|
{
|
||||||
std::string const reportFormat = "Player %s (guid %u, account id: %u) failed warden %u check (%s). Action: %s";
|
std::string const reportFormat = "Player {} (guid {}, account id: {}) failed warden {} check ({}). Action: {}";
|
||||||
reportMsg = Acore::StringFormat(reportFormat, plr->GetName().c_str(), plr->GetGUID().GetCounter(), _session->GetAccountId(),
|
reportMsg = Acore::StringFormat(reportFormat, plr->GetName().c_str(), plr->GetGUID().GetCounter(), _session->GetAccountId(),
|
||||||
checkId, ((checkData && !checkData->Comment.empty()) ? checkData->Comment.c_str() : "<warden comment is not set>"),
|
checkId, ((checkData && !checkData->Comment.empty()) ? checkData->Comment.c_str() : "<warden comment is not set>"),
|
||||||
GetWardenActionStr(action).c_str());
|
GetWardenActionStr(action).c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string const reportFormat = "Account id: %u failed warden %u check. Action: %s";
|
std::string const reportFormat = "Account id: {} failed warden {} check. Action: {}";
|
||||||
reportMsg = Acore::StringFormat(reportFormat, _session->GetAccountId(), checkId, GetWardenActionStr(action).c_str());
|
reportMsg = Acore::StringFormat(reportFormat, _session->GetAccountId(), checkId, GetWardenActionStr(action).c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -255,12 +255,12 @@ void Warden::ApplyPenalty(uint16 checkId, std::string const& reason)
|
|||||||
{
|
{
|
||||||
if (Player const* plr = _session->GetPlayer())
|
if (Player const* plr = _session->GetPlayer())
|
||||||
{
|
{
|
||||||
std::string const reportFormat = "Player %s (guid %u, account id: %u) triggered warden penalty by reason: %s. Action: %s";
|
std::string const reportFormat = "Player {} (guid {}, account id: {}) triggered warden penalty by reason: {}. Action: {}";
|
||||||
reportMsg = Acore::StringFormat(reportFormat, plr->GetName().c_str(), plr->GetGUID().GetCounter(), _session->GetAccountId(), causeMsg.c_str(), GetWardenActionStr(action).c_str());
|
reportMsg = Acore::StringFormat(reportFormat, plr->GetName().c_str(), plr->GetGUID().GetCounter(), _session->GetAccountId(), causeMsg.c_str(), GetWardenActionStr(action).c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string const reportFormat = "Account id: %u failed warden %u check. Action: %s";
|
std::string const reportFormat = "Account id: {} failed warden {} check. Action: {}";
|
||||||
reportMsg = Acore::StringFormat(reportFormat, _session->GetAccountId(), causeMsg.c_str(), GetWardenActionStr(action).c_str());
|
reportMsg = Acore::StringFormat(reportFormat, _session->GetAccountId(), causeMsg.c_str(), GetWardenActionStr(action).c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user