Make m_okick support +J.

This commit is contained in:
B.Greenham 2010-03-05 01:40:52 -05:00
parent a6d1c6c037
commit d925c36c4e
2 changed files with 4 additions and 1 deletions

View 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;
}

View 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());
}