mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
# Notes - Removes redundant `#undyeme` command. - Adds `GetGM()` check to `#undye` so players can't undye other players.
19 lines
351 B
C++
Executable File
19 lines
351 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_undye(Client *c, const Seperator *sep)
|
|
{
|
|
auto target = c;
|
|
if (c->GetTarget() && c->GetTarget()->IsClient() && c->GetGM()) {
|
|
target = c->GetTarget()->CastToClient();
|
|
}
|
|
|
|
target->Undye();
|
|
c->Message(
|
|
Chat::White,
|
|
fmt::format(
|
|
"Undyed armor for {}.",
|
|
c->GetTargetDescription(target)
|
|
).c_str()
|
|
);
|
|
}
|