Difference between revisions of "Extended Bans"

From MIXXnet Wiki

(Initial creation)
 
(Add stacking section and a couple examples)
Line 2: Line 2:
  
 
==Matching Extended Bans==
 
==Matching Extended Bans==
These extbans extend the regular +b and +e channel modes to allow for matching on other criteria, and are applied like so:
+
These extbans extend the regular +b, +e, and +I channel modes to allow for matching on other criteria, and are applied like so:
  
  
Line 8: Line 8:
  
 
/mode +e <extban> - Adds an exception based on extban
 
/mode +e <extban> - Adds an exception based on extban
 +
 +
/mode +I <extban> - Allows matching users to join a +i channel
  
  
Line 35: Line 37:
 
/mode +b <extban>:<mask> - Blocks users matching the mask from performing the specified activity
 
/mode +b <extban>:<mask> - Blocks users matching the mask from performing the specified activity
  
/mode +e <extban>:<mask> - Allows users matching the mask to perform the specified activity.
+
/mode +e <extban>:<mask> - Allows users matching the mask to perform the specified activity
  
  
Line 83: Line 85:
 
|/mode +b T:*!*@bad.host.name.example.com
 
|/mode +b T:*!*@bad.host.name.example.com
 
|}
 
|}
 +
 +
==Stacking==
 +
Extended bans can also be stacked. For example:
 +
 +
/mode +b S:r:*mirc* - Strips colors from messages by anyone with "mirc" in their real name/GECOS.

Revision as of 22:24, 8 March 2011

Extended Bans are an extension of channel ban-matching modes which allow fine control over who can do what on your channel.

Matching Extended Bans

These extbans extend the regular +b, +e, and +I channel modes to allow for matching on other criteria, and are applied like so:


/mode +b <extban> - Bans based on extban

/mode +e <extban> - Adds an exception based on extban

/mode +I <extban> - Allows matching users to join a +i channel


Extended Ban Description Example
j:[state][#channel] Matches if the user is also on the specified channel. /mode +b j:#badchan

/mode +b j:@#badchan (Matches ops on #badchan)

r:[gecos] Matches against a real name (GECOS) field. /mode +b r:BadBot
R:[account] Matches registered nicks that are registered to an account. /mode +b R:BadUser

Acting Extended Bans

Modes that restrict certain channel activity also have corresponding extended bans so they can be applied to certain users only. They are applied with channel modes +b and +e in the regular hostmask syntax of nick!user@host.


/mode +b <extban>:<mask> - Blocks users matching the mask from performing the specified activity

/mode +e <extban>:<mask> - Allows users matching the mask to perform the specified activity


Extended Ban Description Example
A:[mask] Blocks user from using /invite. /mode +b A:*!*@bad.host.name.example.com
B:[mask] Blocks user from using ALL CAPS. /mode +b A:*!*@bad.host.name.example.com
c:[mask] Blocks colors from matching users. /mode +b c:*!*@excessive.color.user.name.example.com
C:[mask] Blocks CTCPs from matching users. /mode +b C:*!*@bad.host.name.example.com
m:[mask] Blocks messages to the channel from matching users (like channel mode +m). /mode +b m:*!*@bad.host.name.example.com
N:[mask] Prevents matching users from changing their nickname while in the channel. /mode +b m:*!*@bad.host.name.example.com
p:[mask] Blocks part messages from matching users. /mode +b p:*!*@bad.host.name.example.com
Q:[mask] Prevents matching users from being kicked from the channel. /mode +b Q:*!*@important.user.example.com
S:[mask] Strips colors from messages by matching users. /mode +b S:*!*@excessive.color.user.example.com
T:[mask] Prevents matching users from sending NOTICEs to the channel. /mode +b T:*!*@bad.host.name.example.com

Stacking

Extended bans can also be stacked. For example:

/mode +b S:r:*mirc* - Strips colors from messages by anyone with "mirc" in their real name/GECOS.