blob: a896c65e6bf73e55239048ed4bc103453e24d70f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
import f00f.net.irc.martyr.util.ParameterIterator;
public class WhoisUserReply extends AbstractWhoisReply
{
private String host;
private String name;
/**
* Factory constructor.
* */
public WhoisUserReply()
{
}
public WhoisUserReply( String params )
{
super( params );
}
public String getIrcIdentifier()
{
return "311";
}
protected void parseParams( ParameterIterator pi )
{
pi.next(); // throw away the nick
host = (String)pi.next(); // hostmask
//log.debug("WhoisUserReply: host: " + host);
name = pi.last(); // the "Name"
//log.debug("WhoisUserReply: name: " + name);
}
public InCommand parse( String prefix, String identifier, String params )
{
return new WhoisUserReply( params );
}
public String getHost()
{
return host;
}
public String getName()
{
return name;
}
}
|