]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Allow IRC ops to ignore channel limits when joining
authorRolf Eike Beer <eike@sf-mail.de>
Sun, 4 May 2008 13:27:34 +0000 (15:27 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 5 May 2008 12:45:28 +0000 (14:45 +0200)
Allow IRC ops to ignore any channel limit (bans, invite only etc.) when they
want to join a channel.

src/ngircd/irc-channel.c

index 934c9082c8f4647bf41f0ceb1751c7ac93d50a31..e95999275aaab341c5a40252754d7343efa99df7 100644 (file)
@@ -70,6 +70,10 @@ join_allowed(CLIENT *Client, CLIENT *target, CHANNEL *chan,
        bool is_invited, is_banned;
        const char *channel_modes;
 
        bool is_invited, is_banned;
        const char *channel_modes;
 
+       /* Allow IRC operators to overwrite channel limits */
+       if (strchr(Client_Modes(Client), 'o'))
+               return true;
+
        is_banned = Lists_Check(Channel_GetListBans(chan), target);
        is_invited = Lists_Check(Channel_GetListInvites(chan), target);
 
        is_banned = Lists_Check(Channel_GetListBans(chan), target);
        is_invited = Lists_Check(Channel_GetListInvites(chan), target);