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.
This commit is contained in:
Rolf Eike Beer 2008-05-04 15:27:34 +02:00 committed by Alexander Barton
parent 2a790861a1
commit 83bfdddf99
1 changed files with 4 additions and 0 deletions

View File

@ -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);