Do the whois and capture the result via a raw.
311 => nick ident host * :realname
319 => channels
312 => server and the server name
317 => seconds idle and signon time
and use the
open TCL command to store this information in a file.
Once the game is over, the king and the pawn go back in the same box.