From: Anselm R. Garbe Date: Wed, 11 Oct 2006 16:23:03 +0000 (+0200) Subject: hotfix X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=560111d4ba0603fa8bfd2784980de421f97dd287 hotfix --- diff --git a/sic.c b/sic.c index c83d600..91b2eec 100644 --- a/sic.c +++ b/sic.c @@ -76,7 +76,7 @@ parsein(char *msg) { else if(!strncmp(msg + 1, "l ", 2)) snprintf(bufout, sizeof(bufout), "PART %s :sic\r\n", &msg[3]); else if(!strncmp(msg + 1, "m ", 2)) { - if(p = strchr(&msg[3], ' ')) + if((p = strchr(&msg[3], ' '))) *(p++) = 0; privmsg(&msg[3], p); return; @@ -86,7 +86,7 @@ parsein(char *msg) { return; } else if(!strncmp(msg + 1, "t ", 2)) { - if(p = strchr(&msg[3], ' ')) + if((p = strchr(&msg[3], ' ')) *(p++) = 0; snprintf(bufout, sizeof(bufout), "TOPIC %s :%s\r\n", &msg[3], p); }