It does. Bare in mind that $nick is the old nickname, $newnick is the new one.

* x is now known as y

x = $nick
y = $newnick