I think you need to go back and read the help file.
You said that you have a popup menu for whois, query, etc., yet you're using a dclick event.
Also, you're setting up the dclick like it's a popup menu with the
name:command format.
If you're simply trying to whois a person when you double click on the line, it should be something like:
menu @window {
dclick: { whois $sline(@window,1) }
}