mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 02:38:45 +00:00
[Commands] Cleanup #hatelist Command. (#1976)
- Cleanup messages and logic.
This commit is contained in:
@@ -2,14 +2,12 @@
|
||||
|
||||
void command_hatelist(Client *c, const Seperator *sep)
|
||||
{
|
||||
Mob *target = c->GetTarget();
|
||||
if (target == nullptr) {
|
||||
c->Message(Chat::White, "Error: you must have a target.");
|
||||
if (!c->GetTarget() || !c->GetTarget()->IsNPC()) {
|
||||
c->Message(Chat::White, "You must target an NPC to use this command.");
|
||||
return;
|
||||
}
|
||||
|
||||
c->Message(Chat::White, "Display hate list for %s..", target->GetName());
|
||||
auto target = c->GetTarget();
|
||||
|
||||
target->PrintHateListToClient(c);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user