blob: a7105546ea98d70a9d87a7ed81737419f9650406 (
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
|
package f00f.net.irc.martyr.replies;
import f00f.net.irc.martyr.InCommand;
/**
* Signals an automated AWAY message received as a response to a PRIVMSG that was sent out.
*
* @author Daniel Henninger
*/
public class AwayReply extends GenericReply
{
private String nick;
private String message;
/**
* Factory constructor.
*/
public AwayReply()
{
}
public AwayReply(String nick, String message)
{
this.nick = nick;
this.message = message;
}
public String getIrcIdentifier()
{
return "301";
}
public InCommand parse( String prefix, String identifier, String params )
{
return new AwayReply(getParameter(params, 1), getParameter(params, 2));
}
public String getNick()
{
return nick;
}
public String getMessage()
{
return message;
}
}
|