Commits

B.Greenham  committed eb220ec

Add blank +K (norepeat) chmode, though it does nothing yet.

  • Participants
  • Parent commits f6d15a4

Comments (0)

Files changed (3)

File help/opers/cmode

               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,

File include/channel.h

 #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 */

File src/chmode.c

   {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 */