home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / alt / irc / 3076 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.2 KB  |  32 lines

  1. Newsgroups: alt.irc
  2. Path: sparky!uunet!utcsri!torn!csd.unb.ca!a8jb
  3. From: a8jb@jupiter.sun.csd.unb.ca (G. Youssef EE)
  4. Subject: Re: String values for user@host ?
  5. Message-ID: <1992Sep11.133749.20612@jupiter.sun.csd.unb.ca>
  6. Keywords: bot 
  7. Organization: University of New Brunswick
  8. References: <1992Sep11.001552.17777@njitgw.njit.edu>
  9. Distribution: World 
  10. Date: Fri, 11 Sep 1992 13:37:49 GMT
  11. Lines: 19
  12.  
  13. In article <1992Sep11.001552.17777@njitgw.njit.edu> lcm1501@hertz.njit.edu (Lawrence C. Mc Abee) writes:
  14.  
  15. >    I have a small problem that only those of your obvious wisdom
  16. > and compassion can solve. The problem is this:
  17. >
  18. >    Is there a $string that will expand to the person's user@host id ?
  19.  
  20. Yes there is, its $%USERHOST() (or $USERHOST() under pre5+).  This will only
  21. work from an /ON command though. 
  22.  
  23. >    Or , better yet a $string that expands to user and another for @host ?
  24.  
  25. You can also use ON ^311 "*" /ASSIGN _user $1;/ASSIGN _host $2 to trap the
  26. user@host when you execute a WHO <nick> command.  To do something like
  27. that it is necessary to go into a bit more work.  You need to use a couple of
  28. ON commands to trap the output of WHO and another to signal the end of 
  29. the WHO command (eg. ON ^312 "*" /DO_END_OF_WHO_WORK). 
  30.  
  31. Wizard.
  32.