code: def connect(self, *args, **kwargs):
          
          if self.use_ssl:
              factory = irc.connection.Factory(wrapper=ssl.wrap_socket)
          else:
              factory = irc.connection.Factory()
          self.connection.connect(server=self.server,
                                  port=self.port,
                                  nickname=self.nickname,
                                  connect_factory=factory,
                                  password=self.password,
                                  username=self.username,
                                  ircname=self.ircname)
docs: Connect to a server.
  
          This overrides the function in SimpleIRCClient
          to provide SSL functionality.
  
          :param args:
          :param kwargs:
          :return: