public class IRCUser extends Object
It's used to pack these information in one object.
IRCEventListener,
IRCParser| Constructor and Description |
|---|
IRCUser(String nick,
String username,
String host)
Creates a new
IRCUser object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Returns the host of the person who sent the line.
|
String |
getNick()
Returns the nickname of the person who sent the line
or the servername of the server which sent the line.
|
String |
getServername()
Returns the servername of the server which sent the line or the nickname of
the person who sent the line.
|
String |
getUsername()
Returns the username of the person who sent the line.
|
String |
toString()
Returns the nickname.
|
public String getNick()
null is returned.
getServername!null is returned.getServername(),
getUsername(),
getHost()public String getServername()
null is returned.
getNick!null is returned.getNick()public String getUsername()
null.public String getHost()
null.null if it's not given.getNick(),
getUsername()