mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-06 13:50:28 +00:00
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:
parent
2a790861a1
commit
83bfdddf99
@ -70,6 +70,10 @@ join_allowed(CLIENT *Client, CLIENT *target, CHANNEL *chan,
|
|||||||
bool is_invited, is_banned;
|
bool is_invited, is_banned;
|
||||||
const char *channel_modes;
|
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_banned = Lists_Check(Channel_GetListBans(chan), target);
|
||||||
is_invited = Lists_Check(Channel_GetListInvites(chan), target);
|
is_invited = Lists_Check(Channel_GetListInvites(chan), target);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user