summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/KeyMode.java
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/KeyMode.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/KeyMode.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/KeyMode.java b/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/KeyMode.java
new file mode 100644
index 000000000..9f29da431
--- /dev/null
+++ b/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/KeyMode.java
@@ -0,0 +1,31 @@
+package f00f.net.irc.martyr.modes.channel;
+
+import f00f.net.irc.martyr.Mode;
+
+/**
+ * <p>Channel Key - When a channel key is set (by using the mode
+ * 'k'), servers MUST reject their local users request to join the
+ * channel unless this key is given.</p>
+ *
+ * <p>The channel key MUST only be made visible to the channel members in
+ * the reply sent by the server to a MODE query.</p>
+ * (From RFC2811)
+ */
+public class KeyMode extends GenericChannelMask
+{
+ public boolean requiresParam()
+ {
+ return true;
+ }
+
+ public char getChar()
+ {
+ return 'k';
+ }
+
+ public Mode newInstance()
+ {
+ return new KeyMode();
+ }
+}
+