code: def connect(self):
          '''
          Connects to the IRC server with the options defined in `config`
          '''
          self._connect()
  
          try:
              self._listen()
          except (KeyboardInterrupt, SystemExit):
              pass
          finally:
              self.close(f connect(self):
          '''
          Connects to the IRC server with the options defined in `config`
          '''
          self._connect()
  
          try:
              self._listen()
          except (KeyboardInterrupt, SystemExit):
              pass
          finally:
              self.close()
docs: Connects to the IRC server with the options defined in `config`