head 1.9; access; symbols pkgsrc-2013Q2:1.9.0.8 pkgsrc-2013Q2-base:1.9 pkgsrc-2012Q4:1.9.0.6 pkgsrc-2012Q4-base:1.9 pkgsrc-2011Q4:1.9.0.4 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q2:1.9.0.2 pkgsrc-2011Q2-base:1.9 pkgsrc-2011Q1:1.8.0.20 pkgsrc-2011Q1-base:1.8 pkgsrc-2010Q4:1.8.0.18 pkgsrc-2010Q4-base:1.8 pkgsrc-2010Q3:1.8.0.16 pkgsrc-2010Q3-base:1.8 pkgsrc-2010Q2:1.8.0.14 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.8.0.12 pkgsrc-2010Q1-base:1.8 pkgsrc-2009Q4:1.8.0.10 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.8.0.8 pkgsrc-2009Q3-base:1.8 pkgsrc-2009Q2:1.8.0.6 pkgsrc-2009Q2-base:1.8 pkgsrc-2009Q1:1.8.0.4 pkgsrc-2009Q1-base:1.8 pkgsrc-2008Q4:1.8.0.2 pkgsrc-2008Q4-base:1.8 pkgsrc-2008Q3:1.7.0.22 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.20 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.18 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.16 pkgsrc-2008Q1:1.7.0.14 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.12 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.10 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.8 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.6 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.4 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.2 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 buildlink2-base:1.4 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.9 date 2011.04.12.00.49.36; author mrg; state dead; branches; next 1.8; 1.8 date 2008.11.10.19.25.27; author wiz; state Exp; branches; next 1.7; 1.7 date 2006.09.07.13.09.50; author rillig; state Exp; branches; next 1.6; 1.6 date 2003.03.14.12.59.04; author mrg; state dead; branches; next 1.5; 1.5 date 2003.02.18.02.29.15; author lukem; state Exp; branches; next 1.4; 1.4 date 2002.03.21.15.29.52; author mrg; state dead; branches; next 1.3; 1.3 date 2002.03.10.14.06.43; author mrg; state Exp; branches; next 1.2; 1.2 date 2000.12.31.06.45.18; author mrg; state dead; branches; next 1.1; 1.1 date 2000.12.15.00.36.33; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.12.15.00.36.33; author wiz; state Exp; branches; next ; desc @@ 1.9 log @update to ircII 20110228. major changes: - warn the user if the IRCHOST may be wrong - make /save save /ignore'd things - remove K&R C support - remove many old UNIX platforms support - avoid a spurious SIGALRM - avoid printing some 8-bit unprintable chars - add support for modern qnx @ text @$NetBSD: patch-ad,v 1.8 2008/11/10 19:25:27 wiz Exp $ SunPro defines __STDC__ to 0 by default. --- include/cast_sbox.h.orig 2003-12-08 01:59:48.000000000 +0000 +++ include/cast_sbox.h @@@@ -9,7 +9,7 @@@@ */ /* sigh */ -#if __STDC__ /* || (__STDC__ == 0 && defined(__sun)) */ +#if __STDC__ || (__STDC__ == 0 && defined(__sun)) #define U(x) x##U #define UL(x) x##UL #else @ 1.8 log @Update to 20080314: Changes since ircII 20060725: o /on channel_signoff works again o try to split ICB messages at word boundaries o disallow many IRC commands on ICB o /ping works on ICB o revert the utf-8 changes for large lastlog performance reasons. there should be a re-implementation coming in the future. @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.7 2006/09/07 13:09:50 rillig Exp $ @ 1.7 log @Added a patch that is needed for Solaris with SunPro. @ text @d1 1 a1 1 $NetBSD$ d5 2 a6 2 --- include/cast_sbox.h.orig 2003-12-08 02:59:48.000000000 +0100 +++ include/cast_sbox.h 2006-09-07 15:03:47.830134796 +0200 @ 1.6 log @update to ircii 20030314. changes since ircII 20021103: o server's added by /server are no longer removed if they fail to connect. o SEVERAL REMOTE HOLES FIXED in ctcp, status & other code o fix ICB /msg to names starting with a /. you can now /msg \/oink to send a message to "/oink". if you previously were able to /msg \oink you now have to /msg \\oink. o arithmetic "|" now works properly o fix ICB /msg with a user the same name as the channel o fix ICB group's and user's with comma's in them o /notify and /timer always go to level crap now o fix nickname response lossage o fix $connect() hich was broken recently o fix "irc -h" which was broken recently o fix "dcc close raw" which was broken recently @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.5 2003/02/18 02:29:15 lukem Exp $ d3 5 a7 19 --- source/server.c.orig 2002-09-07 02:04:38.000000000 +1000 +++ source/server.c @@@@ -58,7 +58,9 @@@@ int connect_to_unix _((int, u_char *)); #include "icb.h" #include "server.h" +#if 0 static void server_list_garbage_collect _((void)); +#endif static void add_to_server_buffer _((int, u_char *)); static void login_to_server _((int)); static int connect_to_server_direct _((u_char *, int, u_char *, int)); @@@@ -95,6 +97,7 @@@@ extern int dgets_errno; #define DEFAULT_SERVER_VERSION Server2_8 +#if 0 /* * clean out the SERVER_FAKE entries a8 34 @@@@ -109,6 +112,7 @@@@ server_list_garbage_collect() else i++; } +#endif /* * close_server: Given an index into the server list, this closes the @@@@ -684,7 +688,7 @@@@ remove_from_server_list(i) if (i < from_server) --from_server; while ((tmp = traverse_all_windows(&flag)) != NULL) - if (tmp->server > i) + if (tmp->server > i && tmp->server > 0) tmp->server--; bcopy((char *) &server_list[i + 1], (char *) &server_list[i], (number_of_servers - i - 1) * sizeof(Server)); @@@@ -1171,7 +1175,9 @@@@ connect_to_server(server_name, port, nic server_index = connect_to_server_process(server_name, port, nick, server_index); else server_index = connect_to_server_direct(server_name, port, nick, server_index); +#if 0 server_list_garbage_collect(); +#endif if (server_index) { server_list[server_index].attempting_to_connect = 0; @@@@ -1423,9 +1429,11 @@@@ display_server_list() say("Server list:"); for (i = 0; i < number_of_servers; i++) { - u_char *icb_msg = server_list[i].version == ServerICB ? (u_char *) " (ICB connection)" : empty_string; - u_char *group_msg, lbuf[BIG_BUFFER_SIZE]; + u_char *icb_msg, *group_msg, lbuf[BIG_BUFFER_SIZE]; d10 6 a15 6 + if (server_list[i].flags & SERVER_FAKE) + continue; + icb_msg = server_list[i].version == ServerICB ? (u_char *) " (ICB connection)" : empty_string; if (server_list[i].server_group) { snprintf(CP(lbuf), sizeof lbuf, " [group: %s]", @ 1.5 log @patch from mrg@@ to fix coredump when a connection to a server fails @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @update to ircII 20020321. from the NEWS file: o /save -all works properly now o new server server groups can be listed in $IRCSERVER by prefixing :group: to the server name, eg, IRC/:lamenet:irc.lamenet.org:666 o fix /set status_voice o add /server -group, allowing proper multi-network configuration o fix tabkey for people who join channels o fix many $functions() to work properly in multi-server context, and no longer use the current window o enhance $ignored() o add missing docs for /set tab, decrypt_program, show_stars and iso2022_support o new /on window_list for /window list output hookery o /window create now takes -xterm and -screen flags to force either a xterm or screen window to be created, rather than forcing the choice o /on flood support for ICB @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 2002/03/10 14:06:43 mrg Exp $ d3 61 a63 53 Index: source/icb.c =================================================================== RCS file: /home/cvs/ircii/source/icb.c,v retrieving revision 2.47 diff -p -r2.47 icb.c *** source/icb.c 2002/02/05 18:14:45 2.47 --- source/icb.c 2002/03/10 14:00:50 *************** IRCII_RCSID("@@(#)$eterna: icb.c,v 2.47 2 *** 62,67 **** --- 62,68 ---- #include "icb.h" #include "hook.h" #include "ignore.h" + #include "flood.h" /* sender functions */ static void icb_put_login _((u_char *, u_char *, u_char *, u_char *, u_char *)); *************** icb_got_public(line) *** 154,160 **** break; } ! if (do_hook(PUBLIC_LIST, "%s %s %s", ap[0], get_server_icbgroup(parsing_server_index), ap[1])) put_it("%s<%s>%s %s", high, ap[0], high, ap[1]); out: set_lastlog_msg_level(level); --- 155,162 ---- break; } ! if (check_flooding(ap[0], PUBLIC_FLOOD, ap[1]) && ! do_hook(PUBLIC_LIST, "%s %s %s", ap[0], get_server_icbgroup(parsing_server_index), ap[1])) put_it("%s<%s>%s %s", high, ap[0], high, ap[1]); out: set_lastlog_msg_level(level); *************** icb_got_msg(line) *** 192,198 **** break; } ! if (do_hook(MSG_LIST, "%s %s", ap[0], ap[1])) { if (away_set) { --- 194,201 ---- break; } ! if (check_flooding(ap[0], MSG_FLOOD, ap[1]) && ! do_hook(MSG_LIST, "%s %s", ap[0], ap[1])) { if (away_set) { @ 1.3 log @pull in a change from ircii-current: - add /on flood support for ICB. (ircii) PR#524 @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @update to 20001231. changes include: - new -t/-T (already in pkgsrc version) - cygwin termcap support - severel new core dumps fixed - support for ICB groups called, eg, "/quit" - better mIRC colour support @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.1 2000/12/15 00:36:33 wiz Exp $ d3 53 a55 32 --- source/irc.c.orig Thu Aug 31 13:52:49 2000 +++ source/irc.c Mon Sep 18 00:12:27 2000 @@@@ -154,6 +154,7 @@@@ * message anywhere */ int qflag; /* set if we ignore .ircrc */ int bflag; /* set if we load .ircrc before connecting */ +int tflag; /* don't use termcap ti/te sequences */ time_t idle_time; /* last time the user hit a key */ time_t start_time; /* epoch time we started */ @@@@ -207,6 +208,8 @@@@ -b\t\tload .ircrc before connecting to a server\n\ -l \tloads in place of your .ircrc\n\ -I \tloads in place of your .ircquick\n\ + -t\t\tdo not use termcap ti and te sequences at startup\n\ + -T\t\tuse termcap ti and te sequences at startup (default)\n\ -icb\t\tuse ICB connections by default\n\ -irc\t\tuse IRC connections by default\n\ icb [same switches] (default to -icb)\n"; @@@@ -538,6 +541,12 @@@@ break; case 'S': using_server_process = 1; + break; + case 't': + tflag = 1; + break; + case 'T': + tflag = 0; break; case 'q': if (bflag) @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.7 2000/09/18 14:45:22 tron Exp $ @ 1.1.1.1 log @Create new 'chat' category, featuring chat clients and servers of all kinds. Move some packages from 'net' here. @ text @@