From the mIRC help:
Quote:

$snick(#,N)
Returns the Nth selected nickname in the channel listbox on channel #.

So, yes, you'd have to be in a channel to have a nick selected to do anything with it.