[Commands] Cleanup #gender Command. (#1832)

- Cleanup message and logic.
- Cleanup other spots using similar logic so they're all uniform.
This commit is contained in:
Kinglykrab
2021-11-26 10:01:35 -05:00
committed by GitHub
parent 2dc3ca52db
commit e87b8e2682
17 changed files with 258 additions and 140 deletions
+9 -1
View File
@@ -19,7 +19,15 @@ void command_setpvppoints(Client *c, const Seperator *sep)
target->SendPVPStats();
std::string pvp_message = fmt::format(
"{} now {} {} PVP Point{}.",
c == target ? "You" : target->GetCleanName(),
(
c == target ?
"You" :
fmt::format(
"{} ({})",
target->GetCleanName(),
target->GetID()
)
),
c == target ? "have" : "has",
pvp_points,
pvp_points != 1 ? "s" : ""