awhois

Asynchronous WHOIS
Syntax

awhois [-i] (<nickname>[,<magic>])
{
    <callback command>
}

Description
AWHOIS stands for Asynchronous WHOIS. It is used to obtain data for a specified irc user (designated by <nickname>). This command sends a WHOIS query to the server and silently awaits the sequence of replies. When the "End of WHOIS" message is received from server the <callback command> is executed passing the WHOIS informations as positional parameters.
The <magic> string is an optional string to be evaluated at AWHOIS execution time. It is passed as the last positional parameter.
Callback command parameters:
$0 = nickname
$1 = username
$2 = hostname
$3 = realname (may be empty)
$4 = server
$5 = idle time (may be empty)
$6 = signon time (may be empty)
$7 = channels (may be empty)
$8 = server that provided the informations
$9 = special informations (may be empty)
$10 = magic string evaluated at awhois call (may be empty)
If the -i switch is specified , the whois message is sent to the server that the <nickname> user is connected to; in this way you will probably get the idle time of the user too.
If the server replies with a "No such nick/channel error message" the <callback command> will be still triggered , but will have all the parameters empty with the exception of $0.
If the connection gets interrupted before all the informations have been received, the <callback command> will never be triggered.
This command is connection dependant.
Examples

awhois(pragma){ echo $0-; }

Main index, Command index
KVirc 3.0.0 documentation
Generated by diego at Sat Jul 13 15:37:55 2002