Extended Bans
We've recently added support for extended bans, which allow you to have more control over your channel's ban list.
The proper syntax for these types of bans is as follows:
/mode #channel +b ~type:mask
The following types of extended bans are supported:
Type | Name | Purpose |
---|---|---|
~c | Channel | If a user is in a channel that matches this ban, (s)he will be unable to join. |
~n | Nick Change | If a user matches this ban, (s)he will be unable to change their nickname while in the channel. |
~q | Quiet | If a user matches this bans, (s)he will be unable to send messages to the channel. |
~r | Realname | If a user's realname (gcos) matches this ban, (s)he will be unable to join. |
Quiet and Nick Change
~q and ~n, are similar to old bans, except that they allow you to control what a user can do without preventing them from joining the channel. ~q will prevent users matching the ban from sending messages to the channel, while ~n will prevent them from changing their nickname.
Syntax:
/mode #channel +b ~q:nick!ident@host
/mode #channel +b ~n:nick!ident@host
So, for example, if you wanted to allow AOL users to join the channel, but prevent them from speaking, you could set the following ~q extended ban:
/mode #channel +b ~q:*!*@*.aol.com
If you wanted to prevent AOL users from changing their nickname while in your channel, you could set the following ~n extended ban:
/mode #channel +b ~n:*!*@*.aol.com
Channel and Realname
~c and ~r are channel and real name bans. When ~c is used, anyone who is currently in a channel that matches the ban will not be able to join. When ~r is used, no one whose real name (gcos) matches the ban will be able to join (note: ~r treats _ as both the character _ and a space).
Syntax:
/mode #channel +b ~c:#channel
/mode #channel +b ~r:realname
So, for example, if you wanted to prevent users who are in any channel containing the word warez from joining your channel, you could set the following ~c extended ban:
/mode #channel +b ~c:#*warez*
If, for example, you wanted to prevent users with the word bot in their real name (gcos) from joininf the channel, you could set the following ~r extended ban:
/mode #channel +b ~r:*bot*
Assistance
Should you need assistance using the new extended bans feature, feel free to stop by #Support