home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.irc.ircii:217 alt.irc:4619
- Newsgroups: alt.irc.ircii,alt.irc
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!vegard
- From: vegard@bih.no
- (Vegard Engen)
- Subject: Re: userhost-script in ircII2.2pre7.myc6
- Message-ID: <1992Dec12.174605.5846@alf.uib.no>
- Sender: usenet@alf.uib.no (Bergen University Newsaccount)
- Organization: Bergen College of Engineering, Bergen, Norway
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1992Dec6.120402.20169@alf.uib.no>
- Date: Sat, 12 Dec 92 17:46:05 GMT
- Lines: 40
-
- vegard@bih.no wrote:
- > vegard@bih.no wrote:
- > [unneccesary patch deleted.]
- > Daemon pointed out that this could be done with the userhost-function too,
- > which abandon the need of a patch. Here's the new script, just have it
- > replace the old userhost-script. (Could those, whoever it is, take care of
- > that in the myc distribution of ircII too?)
- >
- ooops - there was a bug in THAT script too...anyway, THIS one works :)
- ---- cut here ----- cut here ----- cut here ----- cut here ----- cut here ----
-
- ###########################################################################
- # #
- # Purpose: user@host on incoming /msg's. #
- # #
- # Author: Vegard Engen (Veggen), Bergen, Norway. #
- # #
- # Description: This script makes the FIRST message from every nick show #
- # up with the user@host. The next message from that nick is #
- # shown with just the nick, but it displays the user@host if #
- # that info changes again (i.e. user signs off, and another #
- # user signs on with the same nick). #
- # #
- ###########################################################################
- @ UsrHost = 0
- alias ShowUserHost {
- @ SET INPUT_ALIASES ON
- @ UHost = userhost()
- @ UsrHost = MATCH($UHost $($(${0}).UsrHost))
- ^if ( UsrHost )
- { echo *$0* $1- }
- { assign $(${0}).UsrHost $UHost
- echo *$0\($UHost\)* $1- }
- @ SET INPUT_ALIASES OFF
- }
-
- on #^msg 2 * {
- ShowUserHost $0-
- }
- on ^msg * comment
-