summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/errors/NoMotdError.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/errors/NoMotdError.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/errors/NoMotdError.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/errors/NoMotdError.java b/EssentialsUpdate/src/f00f/net/irc/martyr/errors/NoMotdError.java
new file mode 100644
index 000000000..0f157a33f
--- /dev/null
+++ b/EssentialsUpdate/src/f00f/net/irc/martyr/errors/NoMotdError.java
@@ -0,0 +1,39 @@
+package f00f.net.irc.martyr.errors;
+
+import f00f.net.irc.martyr.InCommand;
+
+/**
+ * Code: 422 ERR_NOMOTD
+ * :MOTD File is missing
+ * Server's MOTD file could not be opened by the server.
+ */
+public class NoMotdError extends GenericError
+{
+ private String errorMessage;
+
+ public NoMotdError()
+ {
+ }
+
+ public NoMotdError(String errorMessage)
+ {
+ this.errorMessage = errorMessage;
+ }
+
+ public String getIrcIdentifier()
+ {
+ return "422";
+ }
+
+ public InCommand parse( String prefix, String identifier, String params )
+ {
+ return new NoMotdError(getParameter(params, 1));
+ }
+
+ public String getErrorMessage()
+ {
+ return errorMessage;
+ }
+
+}
+