1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 16:53:12 +02:00

Send uids everywhere when setting modes on clients

This commit is contained in:
Adam
2012-10-30 21:22:10 -04:00
parent 26a4a13cdf
commit 1730bfb2bc
13 changed files with 51 additions and 32 deletions
+2 -2
View File
@@ -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 */