I'm nor sure that I understand you completely.. so if this is off, my apologies.
on *:NICK:{ if ($newnick == $me) { action's here }
}
where as $nick is the old nick, and $newnick is the new nick. If this is incorrect, try explaing more in depthy what you're trying to accomplish.