mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
[Commands] Cleanup #gm Command. (#1830)
- Cleanup message and logic. - Cleanup SetGM() message.
This commit is contained in:
+7
-1
@@ -2076,7 +2076,13 @@ bool Client::ChangeFirstName(const char* in_firstname, const char* gmname)
|
||||
void Client::SetGM(bool toggle) {
|
||||
m_pp.gm = toggle ? 1 : 0;
|
||||
m_inv.SetGMInventory((bool)m_pp.gm);
|
||||
Message(Chat::Red, "You are %s a GM.", m_pp.gm ? "now" : "no longer");
|
||||
Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"You are {} flagged as a GM.",
|
||||
m_pp.gm ? "now" : "no longer"
|
||||
).c_str()
|
||||
);
|
||||
SendAppearancePacket(AT_GM, m_pp.gm);
|
||||
Save();
|
||||
UpdateWho();
|
||||
|
||||
Reference in New Issue
Block a user