]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_kick.c
Backed out changeset 9bd802724b74
[irc/rqf/shadowircd.git] / modules / core / m_kick.c
index 77b58f661e62d5c1e65bfb2ddbb13c6e72e1ed74..572e9117d641b39202f2c8fbc8e8c03475ab066b 100644 (file)
@@ -235,6 +235,11 @@ 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,