<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_user_info(self, nick, user='*', real='*'):
 """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. """

        if self.connected:
            raise Exception("Can't set user info now, we're already connected!")

        # server will pickup list when they exist
        if not self.connected:
            self.nick = nick

        self.connect_info['user'] = {
            'nick': nick,
            'user': user,
            'real': real,
        }