mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
- Fix #undye command as its method was not being used in command.cpp. - Cleanup messages and logic for both #undye and #undyeme.
25 lines
419 B
C++
Executable File
25 lines
419 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_undye(Client *c, const Seperator *sep)
|
|
{
|
|
auto target = c;
|
|
if (c->GetTarget() && c->GetTarget()->IsClient()) {
|
|
target = c->GetTarget()->CastToClient();
|
|
}
|
|
|
|
target->Undye();
|
|
c->Message(
|
|
Chat::White,
|
|
fmt::format(
|
|
"Undyed armor for {}.",
|
|
c == target ?
|
|
"yourself" :
|
|
fmt::format(
|
|
"{} ({})",
|
|
target->GetCleanName(),
|
|
target->GetID()
|
|
)
|
|
).c_str()
|
|
);
|
|
}
|