From 83bfdddf995bd0a3b23ce7e7da3719e4b73c782e Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 4 May 2008 15:27:34 +0200 Subject: [PATCH] Allow IRC ops to ignore channel limits when joining Allow IRC ops to ignore any channel limit (bans, invite only etc.) when they want to join a channel. --- src/ngircd/irc-channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index 934c9082..e9599927 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -70,6 +70,10 @@ join_allowed(CLIENT *Client, CLIENT *target, CHANNEL *chan, 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); -- 2.39.2