Extended Bans
(→Channel and Realname) |
|||
Line 72: | Line 72: | ||
<code>/mode #channel +b ~c:#*warez*</code> | <code>/mode #channel +b ~c:#*warez*</code> | ||
- | If, for example, you wanted to prevent users with the word ''bot'' in their real name (gcos) from | + | If, for example, you wanted to prevent users with the word ''bot'' in their real name (gcos) from joining the channel, you could set the following ~r extended ban: |
<code>/mode #channel +b ~r:*bot*</code> | <code>/mode #channel +b ~r:*bot*</code> | ||
Line 88: | Line 88: | ||
<code>/mode #channel +b ~!c:#warez</code><br> | <code>/mode #channel +b ~!c:#warez</code><br> | ||
<code>/mode #channel +b ~!r:*cool*</code> | <code>/mode #channel +b ~!r:*cool*</code> | ||
- | |||
== Assistance == | == Assistance == | ||
Should you need assistance using the new extended bans feature, feel free to stop by #Support | Should you need assistance using the new extended bans feature, feel free to stop by #Support |
Revision as of 00:31, 16 December 2008
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 |
---|---|---|
~a | Account | If a user's account name matches this ban, (s)he will be unable to join. |
~c | Channel | If a user is in a channel that matches this ban, (s)he will be unable to join. |
~j | Shared Bans | If a user matches a ban on the channel who's ban list is being shared, (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. |
~t | Text | Allows you to specify text that will be blocked if a user's privmsg or notice to the channel contains it. * and ? wildcards supported. |
In This Guide: |
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 joining the channel, you could set the following ~r extended ban:
/mode #channel +b ~r:*bot*
Reverse Logic
If "!" is specified in an extended channel or realname ban, then it will have a reverse effect. For example, an extended channel ban on #darenet with the "!" flag will prevent anyone from joining if they are not in #darenet.
Syntax:
/mode #channel +b ~!<type>:mask
Examples:
/mode #channel +b ~!c:#warez
/mode #channel +b ~!r:*cool*
Assistance
Should you need assistance using the new extended bans feature, feel free to stop by #Support