1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 06:06:38 +02:00

Allowing adding hostmasks to channel access lists

This commit is contained in:
Adam
2010-11-30 03:02:33 -05:00
parent 2a4d57a1ca
commit 0ba566491e
24 changed files with 343 additions and 338 deletions
+3 -3
View File
@@ -459,7 +459,7 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const Anope::string &param, bo
/* Enforce secureops, etc */
if (EnforceMLock)
chan_set_correct_modes(u, this, 1);
chan_set_correct_modes(u, this, 0);
return;
}
@@ -1207,9 +1207,9 @@ void chan_set_correct_modes(User *user, Channel *c, int give_modes)
{
if ((ml.set && !c->HasUserStatus(user, ml.name)) || (!ml.set && c->HasUserStatus(user, ml.name)))
{
if (ml.set && give_modes)
if (ml.set)
c->SetMode(NULL, cm, user->nick, false);
else if (!ml.set && !give_modes)
else if (!ml.set)
c->RemoveMode(NULL, cm, user->nick, false);
}
}