From 870b1b46942169894ad47df543ae3d999807f3f4 Mon Sep 17 00:00:00 2001 From: "B.Greenham" Date: Fri, 5 Mar 2010 01:51:36 -0500 Subject: [PATCH] Third time's the charm, apparently. Being sleepy and committing is a bad combo. --- extensions/m_okick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/m_okick.c b/extensions/m_okick.c index 1e28976..9da3a24 100644 --- a/extensions/m_okick.c +++ b/extensions/m_okick.c @@ -69,7 +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; + char *text = rb_strdup(""); if(*parv[2] == '\0') { @@ -138,7 +138,7 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char ":%s KICK %s %s :%s", me.id, chptr->chname, who->id, comment); remove_user_from_channel(msptr); - rb_sprintf(text, "K%s",who->name); + rb_sprintf(text, "K%s", target_p->name); /* we don't need to track NOREJOIN stuff unless it's our client being kicked */ if(MyClient(target_p) && chptr->mode.mode & MODE_NOREJOIN)