changeset: 76:aeb663ddf2e0
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Feb 09 14:42:40 2007 +0100
summary: small fix
diff -r 2d59ad24f377 -r aeb663ddf2e0 sic.c
--- a/sic.c Fri Feb 09 14:40:11 2007 +0100
+++ b/sic.c Fri Feb 09 14:42:40 2007 +0100
@@ -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);
}
}
Received on Fri Feb 09 2007 - 14:45:44 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:04 UTC