summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/errors/UsersDisabledError.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/errors/UsersDisabledError.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/errors/UsersDisabledError.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/errors/UsersDisabledError.java b/EssentialsUpdate/src/f00f/net/irc/martyr/errors/UsersDisabledError.java
new file mode 100644
index 000000000..b09c0f929
--- /dev/null
+++ b/EssentialsUpdate/src/f00f/net/irc/martyr/errors/UsersDisabledError.java
@@ -0,0 +1,40 @@
+package f00f.net.irc.martyr.errors;
+
+import f00f.net.irc.martyr.InCommand;
+
+/**
+ * Code: 446 ERR_USERSDISABLED
+ * :USERS has been disabled
+ * Returned as a response to the USERS command. Must be returned by any server which
+ * does not implement it.
+ */
+public class UsersDisabledError extends GenericError
+{
+ private String errorMessage;
+
+ public UsersDisabledError()
+ {
+ }
+
+ public UsersDisabledError(String errorMessage)
+ {
+ this.errorMessage = errorMessage;
+ }
+
+ public String getIrcIdentifier()
+ {
+ return "446";
+ }
+
+ public InCommand parse( String prefix, String identifier, String params )
+ {
+ return new UsersDisabledError(getParameter(params, 1));
+ }
+
+ public String getErrorMessage()
+ {
+ return errorMessage;
+ }
+
+}
+