| Server IP : 173.236.223.38 / Your IP : 216.73.216.33 Web Server : Apache System : Linux vps62975 6.8.0-83-generic #83~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 9 18:19:47 UTC 2 x86_64 User : invmicvps ( 6727287) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/ircII/help/ |
Upload File : |
! $eterna: userhost,v 1.7 2018/06/10 08:17:37 mrg Exp $
!
! Copyright (c) 1990-2018 Michael Sandrof, Troy Rollo, Matthew Green,
! and other ircII contributors.
!
! All rights reserved. See the HELP IRCII COPYRIGHT file for more
! information.
!
Usage: USERHOST <nickname> [<nickname> .. ] [-cmd <command>]
If only USERHOST nickname is supplied the server will be queried
for information about that person. It will return something in
the format:
*** Daemon is frechett@spot.Colorado.EDU (Is an IRC operator)
If -cmd command is added then it will parse the returned line
just as though it were an ON or an ALIAS.
Parameters are:
$0 nickname
$1 '+' if server operator, '-' otherwise
$2 '+' if marked away, '-' if here
$3 username
$4 hostname
Note: Something you may run into if you use this command within an
ALIAS or ON is the following. Take the following example.
alias bonk userhost $0 -cmd echo \($$*\)
When bonk is called, $0 is expanded to a nickname, and $$* changes to
$* to be used by userhost -cmd. However, since the entire expression
is parsed twice, the \'s are eaten the first time leaving ($*) which
will never expand. Thsu to make the above alias work, it has to be:
alias bonk userhost $0 -cmd echo \\\($$*\\\)
On the first pass it becomes userhost nick -cmd echo \($*\)
and on the second pass when the -cmd part is executed it
expands and executes echo (contents of $*)
This is NOT a special case or a bug. It is just an added level of
processing...
See Also:
expressions (under Special Cases at the end)