mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 11:36:36 +00:00
[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:
@@ -23,7 +23,15 @@ void command_nukeitem(Client *c, const Seperator *sep)
|
||||
deleted_count,
|
||||
database.CreateItemLink(item_id),
|
||||
item_id,
|
||||
c == target ? "yourself" : target->GetCleanName()
|
||||
(
|
||||
c == target ?
|
||||
"yourself" :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
target->GetCleanName(),
|
||||
target->GetID()
|
||||
)
|
||||
)
|
||||
).c_str()
|
||||
);
|
||||
} else {
|
||||
@@ -33,7 +41,15 @@ void command_nukeitem(Client *c, const Seperator *sep)
|
||||
"Could not find any {} ({}) to delete from {}.",
|
||||
database.CreateItemLink(item_id),
|
||||
item_id,
|
||||
c == target ? "yourself" : target->GetCleanName()
|
||||
(
|
||||
c == target ?
|
||||
"yourself" :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
target->GetCleanName(),
|
||||
target->GetID()
|
||||
)
|
||||
)
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user