From c83da3caa22aba77bd30a8ac695907b90b2c7889 Mon Sep 17 00:00:00 2001 From: Jon Portnoy Date: Mon, 10 Feb 2003 19:27:33 +0000 Subject: Minor fix to 'local' script submitted by nsx --- net-irc/epic4/ChangeLog | 6 +++++- net-irc/epic4/files/local | 22 ++++++++++++++++++---- 2 files changed, 23 insertions(+), 5 deletions(-) (limited to 'net-irc/epic4') diff --git a/net-irc/epic4/ChangeLog b/net-irc/epic4/ChangeLog index e8984d540c83..8de245754867 100644 --- a/net-irc/epic4/ChangeLog +++ b/net-irc/epic4/ChangeLog @@ -1,6 +1,6 @@ # ChangeLog for net-irc/epic4 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-irc/epic4/ChangeLog,v 1.8 2003/02/10 04:59:51 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/epic4/ChangeLog,v 1.9 2003/02/10 19:27:33 avenj Exp $ *epic4-1.1.10 (09 Feb 2003) @@ -8,6 +8,10 @@ Added new version. Also added --without-tcl, since it won't compile properly if you do have tcl on your system. + 10 Feb 2003; Jon Portnoy epic4-1.1.10.ebuild : + Minor fix to the 'local' script submitted by John M. Burks + + *epic4-1.1.7-r1 (22 Oct 2002) 03 Dec 2002; John M. Burks epic4-1.1.7-r1.ebuild : diff --git a/net-irc/epic4/files/local b/net-irc/epic4/files/local index 3e6777bc4395..1c7f362ef1c2 100644 --- a/net-irc/epic4/files/local +++ b/net-irc/epic4/files/local @@ -1,3 +1,4 @@ +if (fexist(~/.ircrc) == -1) { # uncomment this if you don't want time stamping # timestamp off @@ -560,7 +561,6 @@ on ^333 "*" { on ^367 "*" { xecho -w 1 $banner $1 $2 $3 $strftime($4 %c) } - # tabkey.jm: a full-featured tab key module for epic # # written by nsx @@ -607,7 +607,8 @@ on ^367 "*" { # If our fragment does not begin with '#' or '&', nickname completion is # attempted. This matches the word fragment against all nicknames in the # current channel. If no matches are found, we then match the word fragment -# against all nicknames in all other channels we're on. +# against all nicknames in all other channels we're on and nicknames in our +# notify list that are presently online. # # If there was multiple matches for the word fragment, we replace the word # fragment with the common prefix for these matches, if any. We also display @@ -641,6 +642,9 @@ on ^367 "*" { # For each DCC CHAT connection that takes place, we add the other party to # our nickname history. # +# For each notify signon, we add the nickname that signed on to our nickname +# history. +# # Each time a nickname is added to our nickname history, we first remove any # prior occurrences of the nickname that may exist. We then check to see if # our nickname history is at its capacity (10 nicknames). If it is, the oldest @@ -817,9 +821,14 @@ alias nick_complete { if (frag_matches == []) { ^local nick_list - fe ($remw($C $mychannels())) channel { - @push(nick_list $onchannel($channel)) + fe ($remw($C $mychannels())) nick_name { + @push(nick_list $onchannel($nick_name)) } + + fe ($notify(on)) nick_name { + @push(nick_list $nick_name) + } + @:nick_list = uniq($nick_list) @:frag_matches = pattern($word_frag% $nick_list) } @@ -873,6 +882,10 @@ on #^msg 10 "*" { @add_nickname($0) } +on #^notify_signon 10 "*" { + @add_nickname($0) +} + on #^send_dcc_chat 10 "*" { @add_nickname(=$0) } @@ -880,3 +893,4 @@ on #^send_dcc_chat 10 "*" { on #^send_msg 10 "*" { @add_nickname($0) } +} -- cgit v1.2.3-65-gdbad