what event is used to dclick the nicklist to open a query window?

is it also the same type of event to dclick a nick in the channel window?

i am searching for an answer to a problem i discovered with a script..it give an error when you dclick a nick in either the channel or the nicklist.

DBLCLKNICK Unknown command

i want to make a little workaround for it but not sure where to start.
any help would be greatly appreciated it. plus could you explain a bit what i am looking at?