diff options
author | Adam <Adam@anope.org> | 2012-10-30 21:22:10 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-30 21:22:10 -0400 |
commit | 1730bfb2bc2a664f6b555152c1251384669ee661 (patch) | |
tree | e6f1f8a9a5d18ef5afe28beb841e6fb298c8b349 /modules/commands/cs_mode.cpp | |
parent | 26a4a13cdff2933b77da986ccc38f3538beaaea7 (diff) |
Send uids everywhere when setting modes on clients
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; } |