'Called when a user changes their nickname.'

def irc_NICK(self, prefix, params):

    nick = prefix.split('!', 1)[0]
    if (nick == self.nickname):
        self.nickChanged(params[0])
    else:
        self.userRenamed(nick, params[0])
