f00f.net.irc.martyr.clientstate
Class Member
java.lang.Object
|
+--f00f.net.irc.martyr.clientstate.Member
- public class Member
- extends java.lang.Object
This class allows channels to keep track of individual users. Each
user in the channel has a nick and has voice, ops, both, or none.
Note that nicks can change, but the information we have about that
person does not.
Control over events that happen to this class can be obtained in
a similar fashion to how control for the Channel is taken from
ClientState.
|
Constructor Summary |
Member(java.lang.String nickStr)
Strips off the leading 'at' or 'plus', sets ops or voice, and
keeps the nick. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Member
public Member(java.lang.String nickStr)
Strips off the leading 'at' or 'plus', sets ops or voice, and
keeps the nick. Calls the methods setVoice(...) and
setOps(...) from the constructor, if those conditions
are true. The nick is set before setVoice or setOps are
called.
equals
public boolean equals(Member member)
- Does a nick-wise compare.
equals
public boolean equals(FullNick fullNick)
setOps
public void setOps(boolean ops)
setVoice
public void setVoice(boolean voice)
hasOps
public boolean hasOps()
hasVoice
public boolean hasVoice()
setNick
public void setNick(FullNick nick)
getNick
public FullNick getNick()
Copyright © 2000,2001,2002,2003 f00f networks.