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