diff options
author | mrg <mrg> | 2002-03-10 14:06:43 +0000 |
---|---|---|
committer | mrg <mrg> | 2002-03-10 14:06:43 +0000 |
commit | ab4cadaea4b50a4ff54baf494a18ac66731e143f (patch) | |
tree | 39e6fefccd16631e8fdb8488d83f6de2020f28cb /chat | |
parent | 6ceb77d2b21e0c498facd1019a7b90ac1cfa09e9 (diff) | |
download | pkgsrc-ab4cadaea4b50a4ff54baf494a18ac66731e143f.tar.gz |
pull in a change from ircii-current:
- add /on flood support for ICB. (ircii) PR#524
Diffstat (limited to 'chat')
-rw-r--r-- | chat/ircII/distinfo | 3 | ||||
-rw-r--r-- | chat/ircII/patches/patch-ad | 55 |
2 files changed, 57 insertions, 1 deletions
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) + { |