diff options
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 6b8df2cc9..840912aaf 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -280,9 +280,9 @@ class CommandCSMode : public Command if (Anope::Match(uc->user->GetMask(), param)) { if (adding) - ci->c->SetMode(NULL, cm, uc->user->nick); + ci->c->SetMode(NULL, cm, uc->user->GetUID()); else - ci->c->RemoveMode(NULL, cm, uc->user->nick); + ci->c->RemoveMode(NULL, cm, uc->user->GetUID()); } } } @@ -303,9 +303,9 @@ class CommandCSMode : public Command } if (adding) - ci->c->SetMode(NULL, cm, param); + ci->c->SetMode(NULL, cm, target->GetUID()); else - ci->c->RemoveMode(NULL, cm, param); + ci->c->RemoveMode(NULL, cm, target->GetUID()); } break; } |