]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Remove +J chmode (KICKNOREJOIN)
authorJD Horelick <redacted>
Fri, 21 May 2010 07:29:07 +0000 (03:29 -0400)
committerJD Horelick <redacted>
Fri, 21 May 2010 07:29:07 +0000 (03:29 -0400)
extensions/m_okick.c
include/channel.h
include/numeric.h
modules/core/m_kick.c
src/channel.c
src/chmode.c
src/messages.tab

index c09c42a074f150be1447ee9c113b663415437cd0..86da046889383559d683318b111d0ded755d05d4 100644 (file)
@@ -138,10 +138,5 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char
                      ":%s KICK %s %s :%s", me.id, chptr->chname, who->id, comment);
        remove_user_from_channel(msptr);
 
-       rb_sprintf(text, "K%s", who->id);
-
-       /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
-       if(MyClient(who) && chptr->mode.mode & MODE_NOREJOIN)
-               channel_metadata_time_add(chptr, text, rb_current_time(), "KICKNOREJOIN");
        return 0;
 }
index 6896a2eca6033ab8616c904a987442199358579d..b9932bed1d89583008ef1995e6fa35c500e5484a 100644 (file)
@@ -186,9 +186,8 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p,
 #define MODE_NOKICK    0x40000 /* Disable /kick on this channel */
 #define MODE_NONICK    0x80000 /* Disable /nick for anyone on this channel */
 #define MODE_NOCAPS    0x100000 /* Block messages in all capital letters */
-#define MODE_NOREJOIN  0x200000 /* Block rejoin immediately after kick */
-#define MODE_NOREPEAT  0x400000 /* Block repeat messages */
-#define MODE_NOOPERKICK        0x800000 /* disallow kicking opers */
+#define MODE_NOREPEAT  0x200000 /* Block repeat messages */
+#define MODE_NOOPERKICK        0x400000 /* disallow kicking opers */
 
 #define CHFL_BAN        0x10000000     /* ban channel flag */
 #define CHFL_EXCEPTION  0x20000000     /* exception to ban channel flag */
index a85c17ef3966dfee8a689fced936d9d6fd48c8ac..816c07e531118ad2dcd3bf7a971ff26a7a2226d5 100644 (file)
@@ -307,8 +307,6 @@ extern const char *form_str(int);
 
 #define ERR_NOCTCP          492
 
-#define ERR_KICKNOREJOIN     495
-
 #define ERR_UMODEUNKNOWNFLAG 501
 #define ERR_USERSDONTMATCH   502
 
index 572e9117d641b39202f2c8fbc8e8c03475ab066b..77b58f661e62d5c1e65bfb2ddbb13c6e72e1ed74 100644 (file)
@@ -235,11 +235,6 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                              use_id(source_p), chptr->chname, use_id(who), comment);
                remove_user_from_channel(msptr);
 
-               rb_sprintf(text, "K%s", who->id);
-
-               /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
-               if(MyClient(who) && chptr->mode.mode & MODE_NOREJOIN)
-                       channel_metadata_time_add(chptr, text, rb_current_time(), "KICKNOREJOIN");
        }
        else if (MyClient(source_p))
                sendto_one_numeric(source_p, ERR_USERNOTINCHANNEL,
index 74767f4d57880f3a08064a2e5c15cb237c7cede8..8152b5f5ddb07a4281512308fe5b4f5d6e4a6c12 100644 (file)
@@ -857,17 +857,6 @@ can_join(struct Client *source_p, struct Channel *chptr, char *key)
        if((is_banned(chptr, source_p, NULL, src_host, src_iphost)) == CHFL_BAN)
                return (ERR_BANNEDFROMCHAN);
 
-       rb_sprintf(text, "K%s", source_p->id);
-
-       DICTIONARY_FOREACH(md, &iter, chptr->metadata)
-       {
-               if(!strcmp(md->value, "KICKNOREJOIN") && !strcmp(md->name, text) && (md->timevalue + ConfigChannel.kick_no_rejoin_time > rb_current_time()))
-                       return ERR_KICKNOREJOIN;
-               /* cleanup any stale KICKNOREJOIN metadata we find while we're at it */
-               if(!strcmp(md->value, "KICKNOREJOIN") && !(md->timevalue + ConfigChannel.kick_no_rejoin_time > rb_current_time()))  
-                       channel_metadata_delete(chptr, md->name, 0);
-       }
-
        if(chptr->mode.mode & MODE_INVITEONLY)
        {
                RB_DLINK_FOREACH(invite, source_p->user->invited.head)
index c2fd63cef00f212dee79036af704504afbc97638..8797a79d7d3672ccc4479c5bfce8cdc18a6c65e3 100644 (file)
@@ -555,14 +555,6 @@ chm_simple(struct Client *source_p, struct Channel *chptr,
        else if((dir == MODE_DEL) && (chptr->mode.mode & mode_type))
        {
                /* cleanup metadata when the related mode is removed */
-               if(c == 'J')
-               {
-                       DICTIONARY_FOREACH(md, &iter, chptr->metadata)
-                       {
-                               if(!strcmp(md->value, "KICKNOREJOIN"))  
-                                       channel_metadata_delete(chptr, md->name, 0);
-                       }
-               }
                if(c == 'K')
                        channel_metadata_delete(chptr, "NOREPEAT", 0);
 
@@ -1835,7 +1827,7 @@ struct ChannelMode chmode_table[256] =
   {chm_simple, MODE_NOCAPS },          /* G */
   {chm_nosuch, 0 },                    /* H */
   {chm_ban,    CHFL_INVEX },           /* I */
-  {chm_simple, MODE_NOREJOIN },        /* J */
+  {chm_simple, 0 },    /* J */
   {chm_simple, MODE_NOREPEAT },        /* K */
   {chm_staff,  MODE_EXLIMIT },         /* L */
   {chm_hidden, MODE_NOOPERKICK },      /* M */
index b8fc7d738326da5c987a3add06c2cf13d8a2421f..debeedabb50d5452af5978bce8284ebee216d9da 100644 (file)
@@ -516,7 +516,7 @@ static  const char *  replies[] = {
 /* 492 ERR_NOCTCP */           ":Can't send CTCP to %s (+C set)",
 /* 493 */       NULL,
 /* 494 */       NULL,
-/* 495 ERR_KICKNOREJOIN */       ":%s 495 %s %s :Cannot rejoin channel so soon after being kicked (+J set)",
+/* 495 */       NULL,
 /* 496 */       NULL,
 /* 497 */       NULL,
 /* 498 */       NULL,