From f865a3619ddd7086ae3ef78e5c7a38955ef5cc1a Mon Sep 17 00:00:00 2001 From: "B.Greenham" Date: Fri, 5 Mar 2010 01:44:16 -0500 Subject: [PATCH] Actually make okick support +J. --- extensions/m_okick.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/m_okick.c b/extensions/m_okick.c index 2a47a2d..1e28976 100644 --- a/extensions/m_okick.c +++ b/extensions/m_okick.c @@ -69,6 +69,7 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char char *p = NULL; char *user; static char buf[BUFSIZE]; + char *text; if(*parv[2] == '\0') { @@ -136,8 +137,11 @@ 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); + + rb_sprintf(text, "K%s",who->name); + /* 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(target_p) && chptr->mode.mode & MODE_NOREJOIN) channel_metadata_time_add(chptr, text, rb_current_time()); return 0; }