From: Anselm R. Garbe Date: Fri, 9 Feb 2007 13:42:40 +0000 (+0100) Subject: small fix X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=fe1e3560bedafa1d923bf34abb8f72aef2acb75f small fix --- diff --git a/sic.c b/sic.c index 999b670..3ef526c 100644 --- a/sic.c +++ b/sic.c @@ -121,7 +121,7 @@ parsesrv(char *msg) { *p = 0; if(!strncmp("PONG", cmd, 4)) return; - if(!strncmp("PRIVMSG", cmd, 7)) { + if(!strncmp("PRIVMSG", cmd, 7) && txt) { if(!(p = strchr(cmd, ' '))) return; *p = 0; @@ -136,7 +136,7 @@ parsesrv(char *msg) { write(srv, bufout, strlen(bufout)); } else { - snprintf(bufout, sizeof bufout, "-!- %s", cmd); + snprintf(bufout, sizeof bufout, "-!- %s: %s", cmd, txt ? txt : ""); pout(usr, bufout); } }