code: def _connect(self):
          "Connects a socket to the server using options defined in `config`."
          self.socket = socket.socket()
          self.socket.connect((self.config['host'], self.config['port']))
          self.cmd("NICK %s" % self.config['nick'])
          self.cmd("USER %s %s bla :%s" %
                  (self.config['ident'], self.config['host'], self.config['realname'])f _connect(self):
          "Connects a socket to the server using options defined in `config`."
          self.socket = socket.socket()
          self.socket.connect((self.config['host'], self.config['port']))
          self.cmd("NICK %s" % self.config['nick'])
          self.cmd("USER %s %s bla :%s" %
                  (self.config['ident'], self.config['host'], self.config['realname']))
docs: Connects a socket to the server using options defined in `config`.