def set_user_info(self, nick, user='<STR_LIT:*>', real='<STR_LIT:*>'):
if self.connected:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>if not self.connected:<EOL><INDENT>self.nick = nick<EOL><DEDENT>self.connect_info['<STR_LIT:user>'] = {<EOL>'<STR_LIT>': nick,<EOL>'<STR_LIT:user>': user,<EOL>'<STR_LIT>': real,<EOL>}<EOL>
Sets user info for this server, to be used before connection.

        Args:
            nick (str): Nickname to use.
            user (str): Username to use.
            real (str): Realname to use.