]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Add blank +K (norepeat) chmode, though it does nothing yet.
authorB.Greenham <redacted>
Mon, 1 Mar 2010 04:06:42 +0000 (23:06 -0500)
committerB.Greenham <redacted>
Mon, 1 Mar 2010 04:06:42 +0000 (23:06 -0500)
help/opers/cmode
include/channel.h
src/chmode.c

index 45da475e0f95d46cf3045584f0913e0e85098eec..58f573ff767db2b4137513b797b6f3af1280e6f5 100644 (file)
@@ -39,6 +39,8 @@ NO PARAMETERS:
               50% capital letters will be blocked.
      +J     - Prevent autorejoin on kick. Users will not be able to
               rejoin immediately after being kicked. 
+     +K     - No repeat messages. Messages that are the same as the
+              last message sent to the channel will be blocked.
 
 WITH PARAMETERS:
      +f     - Forward.  Forwards users who cannot join because of +i,
index a6fa1a1299e430ce109a840d9e0a1d988bdf773a..164abe511472a500d29a59eb649da541df36c67d 100644 (file)
@@ -181,6 +181,7 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p,
 #define MODE_NONICK    0x128000 /* Disable /nick for anyone on this channel */
 #define MODE_NOCAPS    0x256000 /* Block messages in all capital letters */
 #define MODE_NOREJOIN  0x512000 /* Block rejoin immediately after kick */
+#define MODE_NOREPEAT  0x1024000 /* Block repeat messages */
 
 #define CHFL_BAN        0x10000000     /* ban channel flag */
 #define CHFL_EXCEPTION  0x20000000     /* exception to ban channel flag */
index 7f78db94d920d6a1c231983d385b61290c9be027..47d8926462a35ea71ab38b787f6b2d20d71b52b3 100644 (file)
@@ -1607,7 +1607,7 @@ struct ChannelMode chmode_table[256] =
   {chm_nosuch, 0 },                    /* H */
   {chm_ban,    CHFL_INVEX },           /* I */
   {chm_simple, MODE_NOREJOIN },        /* J */
-  {chm_nosuch, 0 },                    /* K */
+  {chm_simple, MODE_NOREPEAT },        /* K */
   {chm_staff,  MODE_EXLIMIT },         /* L */
   {chm_nosuch, 0 },                    /* M */
   {chm_simple, MODE_NONICK },          /* N */