rero.ircfw
Class UserMode
java.lang.Object
rero.ircfw.UserMode
- public class UserMode
- extends Object
This class is a mode interpreter for each server. Basically each server can have channel user prefix modes.
The state of these modes is stored as an int within each User object (associated in a hashmap with the Channel
object as the key). This class is used to make sense of the integer mode value for a given servers configuration
UserMode
public UserMode(String m,
String c)
getUsersWithMode
public Set getUsersWithMode(Channel channel,
char mode)
isPrefixMode
public boolean isPrefixMode(char m)
isPrefixChar
public boolean isPrefixChar(char m)
getDisplayForMode
public char getDisplayForMode(char mode)
getModeForDisplay
public char getModeForDisplay(char display)
getValueFor
public int getValueFor(char mchar)
setMode
public int setMode(int original,
char mchar)
unsetMode
public int unsetMode(int original,
char mchar)
isMode
public boolean isMode(int original,
char mchar)
toString
public String toString(int original)
toString
public String toString()