summaryrefslogtreecommitdiff
path: root/modules/commands/cs_mode.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-30 21:22:10 -0400
committerAdam <Adam@anope.org>2012-10-30 21:22:10 -0400
commit1730bfb2bc2a664f6b555152c1251384669ee661 (patch)
treee6f1f8a9a5d18ef5afe28beb841e6fb298c8b349 /modules/commands/cs_mode.cpp
parent26a4a13cdff2933b77da986ccc38f3538beaaea7 (diff)
Send uids everywhere when setting modes on clients
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r--modules/commands/cs_mode.cpp8
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;
}