summaryrefslogtreecommitdiff
path: root/modules/commands/cs_clone.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_clone.cpp
parent26a4a13cdff2933b77da986ccc38f3538beaaea7 (diff)
Send uids everywhere when setting modes on clients
Diffstat (limited to 'modules/commands/cs_clone.cpp')
-rw-r--r--modules/commands/cs_clone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_clone.cpp b/modules/commands/cs_clone.cpp
index bbc06c7be..aef48ea4c 100644
--- a/modules/commands/cs_clone.cpp
+++ b/modules/commands/cs_clone.cpp
@@ -75,9 +75,9 @@ public:
{
/* On most ircds you do not receive the admin/owner mode till its registered */
if ((cm = ModeManager::FindChannelModeByName(CMODE_OWNER)))
- target_ci->c->SetMode(NULL, cm, u->nick);
+ target_ci->c->SetMode(NULL, cm, u->GetUID());
else if ((cm = ModeManager::FindChannelModeByName(CMODE_PROTECT)))
- target_ci->c->RemoveMode(NULL, cm, u->nick);
+ target_ci->c->RemoveMode(NULL, cm, u->GetUID());
}
/* Mark the channel as persistent */