]>
Commit | Line | Data |
---|---|---|
9e970ffd CM |
1 | MODE <channel> <+|-><b|q|e|I> $[~]<type>[:<data>] |
2 | ||
3 | Extended bans (ban conditionals) allow different checks than the usual | |
4 | nick!user@host or nick!user@ip match to determine whether someone should | |
5 | be banned, quieted, exempted or invited. | |
6 | ||
7 | Extended bans are of the form $[~]<type>[:<data>]. The <type> is one | |
8 | character (case insensitive) and determines the type of match. Most types | |
9 | allow or require an extra field <data>. If the tilde (~) is present, the | |
10 | result of the comparison will be negated, unless the ban is invalid in which | |
11 | case it will never match. Invalid bans are ones where <data> is missing but | |
12 | required or where <data> is otherwise invalid as noted below. | |
13 | ||
14 | Unless noted below, all types can be used with +b, +q, +e and +I. | |
15 | ||
16 | extb Type - DESCRIPTION | |
17 | ------------------------------------------------------------------------ | |
18 | $a - Matches all logged in users | |
19 | $a:<mask> - Matches users logged in with a username matching the mask | |
20 | (* and ? wildcards) | |
1175ff83 | 21 | $c:<chan> - Matches users who are on the given channel |
9e970ffd CM |
22 | $o - Matches opers (most useful with +I) |
23 | $r:<mask> - Matches users with a realname (gecos) matching the mask | |
24 | (* and ? wildcards); this can only be used with +b and +q | |
25 | $s:<mask> - matches users connected to a server matching the mask | |
26 | (* and ? wildcards); this can only be used with +b and +q | |
27 | $j:<chan> - matches users who are or are not banned from a specified | |
28 | channel | |
29 | $x:<mask> - Bans all users with matching nick!user@host#gecos | |
30 | $z - Matches all SSL users | |
31 |