]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Make m_okick support +J.
authorB.Greenham <redacted>
Fri, 5 Mar 2010 06:40:52 +0000 (01:40 -0500)
committerB.Greenham <redacted>
Fri, 5 Mar 2010 06:40:52 +0000 (01:40 -0500)
extensions/m_okick.c
modules/core/m_kick.c

index 29e8b64246b14a9b2788613dc6da8174da33a90b..2a47a2dba0f7abcad8631ea6e7fa3ad0c3094993 100644 (file)
@@ -136,5 +136,8 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char
        sendto_server(&me, chptr, CAP_TS6, NOCAPS,
                      ":%s KICK %s %s :%s", me.id, chptr->chname, who->id, comment);
        remove_user_from_channel(msptr);
+       /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
+       if(MyClient(source_p) && chptr->mode.mode & MODE_NOREJOIN)
+               channel_metadata_time_add(chptr, text, rb_current_time());
        return 0;
 }
index 7255ba16160b2f8793143f27d1d2e4117b05f2a1..ee96abaf90b979a61c85e033bd4f0932616aa551 100644 (file)
@@ -232,7 +232,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
 
                rb_sprintf(text, "K%s",who->name);
 
-               /* we don't need to track NOKICK stuff unless it's our client being kicked */
+               /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
                if(MyClient(source_p) && chptr->mode.mode & MODE_NOREJOIN)
                        channel_metadata_time_add(chptr, text, rb_current_time());
        }