Irssi scripting: how to get /whois information and parse it
===

I am working on one script for irssi client.

I need to get some informations from /whois (like channel names for example).

Something like this:

    $whois_text = $server->command("/whois nick");

It's not working of course ;) Thank you.