Make m_okick support +J.
This commit is contained in:
parent
a6d1c6c037
commit
d925c36c4e
|
@ -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,
|
sendto_server(&me, chptr, CAP_TS6, NOCAPS,
|
||||||
":%s KICK %s %s :%s", me.id, chptr->chname, who->id, comment);
|
":%s KICK %s %s :%s", me.id, chptr->chname, who->id, comment);
|
||||||
remove_user_from_channel(msptr);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
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)
|
if(MyClient(source_p) && chptr->mode.mode & MODE_NOREJOIN)
|
||||||
channel_metadata_time_add(chptr, text, rb_current_time());
|
channel_metadata_time_add(chptr, text, rb_current_time());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue