1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 14:43: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
@@ -85,9 +85,9 @@ class CommandCSRegister : public Command
{
/* On most ircds you do not receive the admin/owner mode till its registered */
if ((cm = ModeManager::FindChannelModeByName(CMODE_OWNER)))
c->SetMode(NULL, cm, u->nick);
c->SetMode(NULL, cm, u->GetUID());
else if ((cm = ModeManager::FindChannelModeByName(CMODE_PROTECT)))
c->RemoveMode(NULL, cm, u->nick);
c->RemoveMode(NULL, cm, u->GetUID());
}
/* Mark the channel as persistent */