Introduction
Introduction Statistics Contact Development Disclaimer Help
small fix - sic - simple irc client
git clone git://git.suckless.org/sic
Log
Files
Refs
README
LICENSE
---
commit fe1e3560bedafa1d923bf34abb8f72aef2acb75f
parent 1edd94af86c032d4a83e5e2778526e567c1c4715
Author: Anselm R. Garbe <[email protected]>
Date: Fri, 9 Feb 2007 14:42:40 +0100
small fix
Diffstat:
M sic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git 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);
}
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.