Introduction
Introduction Statistics Contact Development Disclaimer Help
small fix, don't write message to server if channel is not given - sic - simple…
git clone git://git.suckless.org/sic
Log
Files
Refs
README
LICENSE
---
commit ea71b6e88e385304013567869de7dc626194eb90
parent cb68ce9e2c8406bd19fad4376dd024b623946d66
Author: Anselm R. Garbe <[email protected]>
Date: Thu, 8 Feb 2007 15:03:42 +0100
small fix, don't write message to server if channel is not given
Diffstat:
M sic.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/sic.c b/sic.c
@@ -53,6 +53,8 @@ pout(char *channel, char *msg) {
static void
privmsg(char *channel, char *msg) {
+ if(channel[0] == 0)
+ return;
snprintf(bufout, sizeof bufout, "<%s> %s", nick, msg);
pout(channel, bufout);
snprintf(bufout, sizeof bufout, "PRIVMSG %s :%s\r\n", channel, msg);
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.