f00f.net.irc.martyr.modes.channel
Class ExceptionMode

java.lang.Object
  extended by f00f.net.irc.martyr.modes.GenericMode
      extended by f00f.net.irc.martyr.modes.channel.GenericChannelMode
          extended by f00f.net.irc.martyr.modes.channel.GenericChannelMask
              extended by f00f.net.irc.martyr.modes.channel.ExceptionMode
All Implemented Interfaces:
Mode

public class ExceptionMode
extends GenericChannelMask

Channel Ban and Exception - When a user requests to join a channel, his local server checks if the user's address matches any of the ban masks set for the channel. If a match is found, the user request is denied unless the address also matches an exception mask set for the channel.

Servers MUST NOT allow a channel member who is banned from the channel to speak on the channel, unless this member is a channel operator or has voice privilege. (See Section 4.1.3 (Voice Privilege)).

A user who is banned from a channel and who carries an invitation sent by a channel operator is allowed to join the channel.

(From RFC2811)


Nested Class Summary
 
Nested classes/interfaces inherited from interface f00f.net.irc.martyr.Mode
Mode.Sign
 
Constructor Summary
ExceptionMode()
           
 
Method Summary
 char getChar()
          The character that represents this mode (ie o for operator)
 Mode newInstance()
          A Mode can be constructed and asked to make copies of itself.
 boolean requiresParam()
          Should return true if this mode requires a parameter.
 
Methods inherited from class f00f.net.irc.martyr.modes.channel.GenericChannelMask
onePerChannel
 
Methods inherited from class f00f.net.irc.martyr.modes.channel.GenericChannelMode
recordInChannel
 
Methods inherited from class f00f.net.irc.martyr.modes.GenericMode
equals, getParam, getSign, hashCode, setParam, setSign, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionMode

public ExceptionMode()
Method Detail

requiresParam

public boolean requiresParam()
Description copied from interface: Mode
Should return true if this mode requires a parameter.

Returns:
True or false if a param is required for mode

getChar

public char getChar()
Description copied from interface: Mode
The character that represents this mode (ie o for operator)

Returns:
Character representation of mode

newInstance

public Mode newInstance()
Description copied from interface: Mode
A Mode can be constructed and asked to make copies of itself.

Returns:
New Mode instance


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.