summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/errors/KeySetError.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/errors/KeySetError.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/errors/KeySetError.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/errors/KeySetError.java b/EssentialsUpdate/src/f00f/net/irc/martyr/errors/KeySetError.java
new file mode 100644
index 000000000..0d938263b
--- /dev/null
+++ b/EssentialsUpdate/src/f00f/net/irc/martyr/errors/KeySetError.java
@@ -0,0 +1,45 @@
+package f00f.net.irc.martyr.errors;
+
+import f00f.net.irc.martyr.InCommand;
+
+/**
+ * Code: 467 ERR_KEYSEY
+ * <channel> :Channel key already set
+ */
+public class KeySetError extends GenericError
+{
+ private String channel;
+ private String errorMessage;
+
+ public KeySetError()
+ {
+ }
+
+ public KeySetError(String channel, String errorMessage)
+ {
+ this.channel = channel;
+ this.errorMessage = errorMessage;
+ }
+
+ public String getIrcIdentifier()
+ {
+ return "467";
+ }
+
+ public InCommand parse( String prefix, String identifier, String params )
+ {
+ return new KeySetError(getParameter(params, 1), getParameter(params, 2));
+ }
+
+ public String getChannel()
+ {
+ return channel;
+ }
+
+ public String getErrorMessage()
+ {
+ return errorMessage;
+ }
+
+}
+