home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / irc / ircii / 217 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  2.3 KB

  1. Xref: sparky alt.irc.ircii:217 alt.irc:4619
  2. Newsgroups: alt.irc.ircii,alt.irc
  3. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!vegard
  4. From: vegard@bih.no
  5.  (Vegard Engen)
  6. Subject: Re: userhost-script in ircII2.2pre7.myc6
  7. Message-ID: <1992Dec12.174605.5846@alf.uib.no>
  8. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  9. Organization: Bergen College of Engineering, Bergen, Norway
  10. X-Newsreader: TIN [version 1.1 PL6]
  11. References: <1992Dec6.120402.20169@alf.uib.no>
  12. Date: Sat, 12 Dec 92 17:46:05 GMT
  13. Lines: 40
  14.  
  15. vegard@bih.no wrote:
  16. > vegard@bih.no wrote:
  17. > [unneccesary patch deleted.]
  18. > Daemon pointed out that this could be done with the userhost-function too,
  19. > which abandon the need of a patch. Here's the new script, just have it
  20. > replace the old userhost-script. (Could those, whoever it is, take care of
  21. > that in the myc distribution of ircII too?)
  22. ooops - there was a bug in THAT script too...anyway, THIS one works :)
  23. ---- cut here ----- cut here ----- cut here ----- cut here ----- cut here ----
  24.  
  25. ###########################################################################
  26. #                                                                         #
  27. # Purpose: user@host on incoming /msg's.                                  #
  28. #                                                                         #
  29. # Author: Vegard Engen (Veggen), Bergen, Norway.                          #
  30. #                                                                         #
  31. # Description: This script makes the FIRST message from every nick show   #
  32. #              up with the user@host. The next message from that nick is  #
  33. #              shown with just the nick, but it displays the user@host if #
  34. #              that info changes again (i.e. user signs off, and another  #
  35. #              user signs on with the same nick).                         #
  36. #                                                                         #
  37. ###########################################################################
  38. @ UsrHost = 0
  39. alias ShowUserHost {
  40.     @ SET INPUT_ALIASES ON
  41.     @ UHost = userhost()
  42.         @ UsrHost = MATCH($UHost $($(${0}).UsrHost))
  43.         ^if ( UsrHost )  
  44.         { echo *$0* $1- }
  45.         { assign $(${0}).UsrHost $UHost
  46.           echo *$0\($UHost\)* $1- }
  47.         @ SET INPUT_ALIASES OFF
  48. }
  49.  
  50. on #^msg 2 * {
  51.   ShowUserHost $0-
  52.   }
  53. on ^msg * comment
  54.