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:
+3
-3
@@ -459,7 +459,7 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const Anope::string ¶m, 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user