From 8d81965e3568a68d09645a49a1e685764eebf35e Mon Sep 17 00:00:00 2001
From: mrg <mrg@pkgsrc.org>
Date: Sun, 10 Mar 2002 14:06:43 +0000
Subject: pull in a change from ircii-current: 	- add /on flood support for
 ICB.  (ircii) PR#524

---
 chat/ircII/distinfo         |  3 ++-
 chat/ircII/patches/patch-ad | 55 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+), 1 deletion(-)
 create mode 100644 chat/ircII/patches/patch-ad

(limited to 'chat')

diff --git a/chat/ircII/distinfo b/chat/ircII/distinfo
index 0059dbb297a..5c023814360 100644
--- a/chat/ircII/distinfo
+++ b/chat/ircII/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2002/03/10 10:37:27 mrg Exp $
+$NetBSD: distinfo,v 1.9 2002/03/10 14:06:43 mrg Exp $
 
 SHA1 (ircii-20020310.tar.bz2) = a8e0ff58e383adc10e5fbc87a1a8f8a2412a1cf3
 Size (ircii-20020310.tar.bz2) = 531259 bytes
 SHA1 (patch-aa) = 80aa471bcb6f864bed32117ed437d9d1ca9aa1ee
 SHA1 (patch-ac) = 0afd36f3ad2247b0d42dfebab210822dd5dfe151
+SHA1 (patch-ad) = 90a2a9558d2b32c53c55214bdc2f3c1f6136ddff
diff --git a/chat/ircII/patches/patch-ad b/chat/ircII/patches/patch-ad
new file mode 100644
index 00000000000..ad3d16fbe7c
--- /dev/null
+++ b/chat/ircII/patches/patch-ad
@@ -0,0 +1,55 @@
+$NetBSD: patch-ad,v 1.3 2002/03/10 14:06:43 mrg Exp $
+
+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)
+  		{
-- 
cgit v1.2.3