Prees Alt+r and paste the code below in you remote:

on *:NICK:{ set %Nstore %Nstore $+ $chr(44) $+ $nick $newnick }
alias Nstore {
if ($1 == begin) return -
if ($1 == end) return -
if ($gettok(%Nstore,$1,44)) return $ifmatch :/nick $ifmatch
}
menu nicklist {
&Nick store
.$submenu($Nstore($1))
}