Commits

Anonymous committed f3a16f0

new joinuser patch, small fix

  • Participants
  • Parent commits 40c17e3

Comments (0)

Files changed (3)

-pcw - popup chat window
-=======================
+pcw - popup chat windows
+========================
 pcw uses inotify to monitor a directory tree (created by ii[1]) and open
 terminals running cw with the in and out files for each channel.
 

File ii-1.4-joinuser.diff

 diff -r d93eaacde742 ii.c
 --- a/ii.c	Fri Jun 25 10:55:05 2010 +0200
-+++ b/ii.c	Wed Jun 30 14:44:35 2010 -0700
++++ b/ii.c	Fri Jul 02 11:46:55 2010 -0700
 @@ -105,6 +105,7 @@
  	return open(infile, O_RDONLY | O_NONBLOCK, 0);
  }
  	c->fd = fd;
  	c->name = strdup(name);
 +
-+	if(!((name[0]=='#')||(name[0]=='&')||(name[0]=='+')||(name[0]=='!'))) {
++	if(name[0] && !((name[0]=='#')||(name[0]=='&')||(name[0]=='+')||(name[0]=='!'))) {
 +		char msg[128];
 +		snprintf(msg, PIPE_BUF, "-!- %s has joined %s", nick, name);
 +		print_out(name, msg);
 .TH PCW 1 pcw-VERSION
 .SH NAME
-pcw \- popup chat window
+pcw \- popup chat windows
 
 .SH DESCRIPTION
 .B pcw