Sets or changes your link. This should be called before joining channels, but
        can be called at any time afterwards. If the requested nickname is not
        available, the library will keep adding an underscore until a suitable
        nick is found.

def set_nick(self, nick):
        """Sets or changes your link. This should be called before joining channels, but
        can be called at any time afterwards. If the requested nickname is not
        available, the library will keep adding an underscore until a suitable
        nick is found.

        """
        self.nick = nick
        self.send_line("NICK {}".format(nick))