i didn't consider that version. I do know that if ($newnick == $me) doesn't work... lemme try it.
update: it does work. thank you.