def METHOD_NAME(self, prefix, params):
    """Called when an IRC user changes their nickname."""
    old_nick = prefix.split("!")[0]
    new_nick = params[0]
    self.logger.log(f"{old_nick} is now known as {new_nick}")