diff options
| author | Rolf Eike Beer <eike@sf-mail.de> | 2008-05-04 15:27:34 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2008-05-05 14:45:28 +0200 |
| commit | 83bfdddf995bd0a3b23ce7e7da3719e4b73c782e (patch) | |
| tree | 9b0b38d2b4d00b3d3285d6d1e1402c3736e05fce /src | |
| parent | 2a790861a1334c17f87405c60c1417b15bbce392 (diff) | |
| download | ngircd-83bfdddf995bd0a3b23ce7e7da3719e4b73c782e.tar.gz ngircd-83bfdddf995bd0a3b23ce7e7da3719e4b73c782e.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |