[Commands] Remove #undyeme Command. (#2776)

# Notes
- Removes redundant `#undyeme` command.
- Adds `GetGM()` check to `#undye` so players can't undye other players.
This commit is contained in:
Alex King
2023-01-22 12:56:36 -05:00
committed by GitHub
parent abb41840f8
commit 35c3778baf
4 changed files with 1 additions and 11 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
void command_undye(Client *c, const Seperator *sep)
{
auto target = c;
if (c->GetTarget() && c->GetTarget()->IsClient()) {
if (c->GetTarget() && c->GetTarget()->IsClient() && c->GetGM()) {
target = c->GetTarget()->CastToClient();
}