sic

simple irc client
git clone git://git.suckless.org/sic
Log | Files | Refs | README | LICENSE

commit 560111d4ba0603fa8bfd2784980de421f97dd287
parent 48fc6f1b10cd15aad621c8c0216864edf94f4300
Author: Anselm R. Garbe <arg@10kloc.org>
Date:   Wed, 11 Oct 2006 18:23:03 +0200

hotfix
Diffstat:
Msic.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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); }