diff options
author | Jon Portnoy <avenj@gentoo.org> | 2003-02-10 19:27:33 +0000 |
---|---|---|
committer | Jon Portnoy <avenj@gentoo.org> | 2003-02-10 19:27:33 +0000 |
commit | c83da3caa22aba77bd30a8ac695907b90b2c7889 (patch) | |
tree | d32f29773a0665d6183aac2abf638315029bf2d1 /net-irc/epic4/files/local | |
parent | added patch to fix bug 15441 (diff) | |
download | gentoo-2-c83da3caa22aba77bd30a8ac695907b90b2c7889.tar.gz gentoo-2-c83da3caa22aba77bd30a8ac695907b90b2c7889.tar.bz2 gentoo-2-c83da3caa22aba77bd30a8ac695907b90b2c7889.zip |
Minor fix to 'local' script submitted by nsx
Diffstat (limited to 'net-irc/epic4/files/local')
-rw-r--r-- | net-irc/epic4/files/local | 22 |
1 files changed, 18 insertions, 4 deletions
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) } +} |