AmytiX, it'd look a lot better to have the result displayed horizontally. The vertical display looks rather "floody." Borrowing from jaytea's concept, you can do this:
alias search {
while ($fline(#,$+(*,$$1,*),$0,1).text) { tokenize 32 $1- $v1 }
echo -ag $replace($2-,$chr(32),$chr(44) $chr(32))
}
Then the search will give you all the related nicknames in this fashion: nick1, nick2, nick3, nick4 etc...
The latest mIRC versions have the ability to chop up long text and split it into the next line, (it's enabled by default) so you don't have to worry about the search result being cut off.
The use of $fline() is by far the most efficient method to search nicknames on the nicklist.