summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/replies/AwayReply.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/replies/AwayReply.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/replies/AwayReply.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/replies/AwayReply.java b/EssentialsUpdate/src/f00f/net/irc/martyr/replies/AwayReply.java
new file mode 100644
index 000000000..a7105546e
--- /dev/null
+++ b/EssentialsUpdate/src/f00f/net/irc/martyr/replies/AwayReply.java
@@ -0,0 +1,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;
+ }
+
+}