Third time's the charm, apparently. Being sleepy and committing is a bad combo.

This commit is contained in:
B.Greenham 2010-03-05 01:51:36 -05:00
parent f865a3619d
commit 870b1b4694
1 changed files with 2 additions and 2 deletions

View File

@ -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)