From: Anselm R. Garbe Date: Thu, 8 Feb 2007 14:03:42 +0000 (+0100) Subject: small fix, don't write message to server if channel is not given X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=ea71b6e88e385304013567869de7dc626194eb90 small fix, don't write message to server if channel is not given --- diff --git a/sic.c b/sic.c index da79dfc..6e7b627 100644 --- 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);