[hackers] sic: new tip (= 70)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu, 08 Feb 2007 15:10:03 +0100

changeset: 70:c92ffabc64b1
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Thu Feb 08 15:03:42 2007 +0100
files: sic.c
description:
small fix, don't write message to server if channel is not given

diff -r 148ba5792a39 -r c92ffabc64b1 sic.c
--- a/sic.c Thu Feb 08 14:51:04 2007 +0100
+++ b/sic.c Thu Feb 08 15:03:42 2007 +0100
@@ -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);
Received on Thu Feb 08 2007 - 15:10:03 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:00 UTC