From: B.Greenham Date: Fri, 5 Mar 2010 06:40:52 +0000 (-0500) Subject: Make m_okick support +J. X-Git-Tag: shadowircd-6.0.0~50 X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/commitdiff_plain/d925c36c4e3a9bcf1c03956194ea26213e77ba3f?hp=a6d1c6c03731254e057a06376f7028baf48eef10 Make m_okick support +J. --- diff --git a/extensions/m_okick.c b/extensions/m_okick.c index 29e8b64..2a47a2d 100644 --- a/extensions/m_okick.c +++ b/extensions/m_okick.c @@ -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; } diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index 7255ba1..ee96aba 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -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()); }