head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.46 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.44 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.42 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.40 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.38 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.36 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.34 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.32 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.30 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.28 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.26 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.24 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.22 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.20 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.18 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.16 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.14 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.12 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.10 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.8 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.6 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.4 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.2 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.2.0.2 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.1.0.2 pkgsrc-2004Q2-base:1.1; locks; strict; comment @# @; 1.3 date 2004.11.19.13.03.30; author tv; state dead; branches; next 1.2; 1.2 date 2004.06.26.22.17.36; author adrianp; state Exp; branches; next 1.1; 1.1 date 2004.04.01.16.00.42; author tv; state Exp; branches; next ; desc @@ 1.3 log @Update to 1.8. Only one change: incorporate pkgsrc changes into main source. Take over as MAINTAINER (requested by tron@@). @ text @$NetBSD: patch-ad,v 1.2 2004/06/26 22:17:36 adrianp Exp $ --- irc.c.orig Sat May 29 14:41:29 2004 +++ irc.c Sat May 29 14:54:37 2004 @@@@ -52,6 +52,7 @@@@ char irc_ident[256]; char irc_nick[256]; char irc_channel[256]; +int in_irc_channel; /* * irc_recv() receives read(2) chunks and assembles complete lines, which are @@@@ -119,6 +120,8 @@@@ cmd++; scan(&cmd, group, sizeof(group), " ", " "); icb_send_group(server_fd, group); + } else if (!strncasecmp(cmd, "PART ", 5)) { + in_irc_channel = 0; } else if (!strncasecmp(cmd, "PRIVMSG ", 8) || !strncasecmp(cmd, "NOTICE ", 7)) { char dst[128]; @@@@ -249,6 +252,7 @@@@ snprintf(cmd, sizeof(cmd), ":%s JOIN :%s\r\n", src, dst); sync_write(fd, cmd, strlen(cmd)); + in_irc_channel = 1; } void @ 1.2 log @Update icbirc to 1.7 Ok'ed wiz@@/snj@@/tron@@ No Changelog available, diff looks like minor code fixes. @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @nb1: Make more IRC protocol correct. * Automatically issue the equivalent of a NAMES after a JOIN. * Allow PART command so that client may lurk; reissue a JOIN to re-"open" the channel on the client if a new open message arrives. * Provide a fake MOTD to make some IRC clients happier. * 353 (NAMES response) should have a single space character at the end of each line per protocol (Gaim is strict about this). @ text @d3 3 a5 3 --- irc.c.orig Thu Apr 1 10:50:38 2004 +++ irc.c @@@@ -50,6 +50,7 @@@@ char irc_pass[256]; d13 1 a13 1 @@@@ -115,6 +116,8 @@@@ irc_cmd(const char *cmd, int fd) d16 1 a16 1 icb_send_group(fd, group); d22 1 a22 1 @@@@ -242,6 +245,7 @@@@ irc_send_join(int fd, const char *src, c @