mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
refactor(Core/Chat): PSendSysMessage to fmt (#19449)
* refactor(Core/Chat): PSendSysMessage to `fmt`
This commit is contained in:
@@ -107,7 +107,7 @@ public:
|
||||
data << target->GetPackGUID();
|
||||
data << uint32(0); // unknown
|
||||
target->SendMessageToSet(&data, true);
|
||||
handler->PSendSysMessage(LANG_COMMAND_FLYMODE_STATUS, handler->GetNameLink(target).c_str(), enable ? "on" : "off");
|
||||
handler->PSendSysMessage(LANG_COMMAND_FLYMODE_STATUS, handler->GetNameLink(target), enable ? "on" : "off");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -139,9 +139,9 @@ public:
|
||||
if ((max + max2 + size) == 16)
|
||||
max2 = max - 1;
|
||||
if (handler->GetSession())
|
||||
handler->PSendSysMessage("| %s GMLevel %u", name.c_str(), security);
|
||||
handler->PSendSysMessage("| {} GMLevel {}", name, security);
|
||||
else
|
||||
handler->PSendSysMessage("|%*s%s%*s| %u |", max, " ", name.c_str(), max2, " ", security);
|
||||
handler->PSendSysMessage("|{}{}{}| {} |", max, " ", name, max2, " ", security);
|
||||
}
|
||||
}
|
||||
if (footer)
|
||||
@@ -175,9 +175,9 @@ public:
|
||||
if ((max + max2 + name.length()) == 16)
|
||||
max2 = max - 1;
|
||||
if (handler->GetSession())
|
||||
handler->PSendSysMessage("| %s GMLevel %u", name.c_str(), security);
|
||||
handler->PSendSysMessage("| {} GMLevel {}", name, security);
|
||||
else
|
||||
handler->PSendSysMessage("|%*s%s%*s| %u |", max, " ", name.c_str(), max2, " ", security);
|
||||
handler->PSendSysMessage("|{}{}{}| {} |", max, " ", name, max2, " ", security);
|
||||
} while (result->NextRow());
|
||||
handler->SendSysMessage("========================");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user