// Get whois
$irc->whois($nick);
$stuff = $irc->listenFor(SMARTIRC_TYPE_WHOIS);
Now $stuff will contain the result of whois. So it will be either a valid whois, or a nick: No such nick/channel reply. You can sort it out and display the result on your webpage.
Horcsog
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am trying to code a status indicator ,
mostly (online/offline thing) based on a reply of the irc server from the /whois command
but i am completly lost in the API
could someone give me a hint?
Hi!
Here is a little help for you:
// Get whois
$irc->whois($nick);
$stuff = $irc->listenFor(SMARTIRC_TYPE_WHOIS);
Now $stuff will contain the result of whois. So it will be either a valid whois, or a nick: No such nick/channel reply. You can sort it out and display the result on your webpage.
Horcsog