From DarkFather, 7 Years ago, written in Python.
Embed
  1.     def cmd_connect(self, numclients = 1, *args):
  2.         if self.ctx["pair"] and len(self.ctx["clients"]) == 2:
  3.             self.msg(self.context, "\x01ACTION \x035cannot add clients manually in pairing mode.\x01")
  4.             return
  5.         if not self.ctx["clients"]:
  6.             self.ctx["confid"] = "%08x" % (binascii.crc32("%f%f%f" % (random.random(), time.time(), random.random())) & 0xffffffff)
  7.         cids = []
  8.         try:
  9.             numclients = int(numclients)
  10.         except: numclients = 1
  11.         for i in xrange(0, numclients):
  12.             if len(self.ctx["clients"]) >= config["maxclients"]:
  13.                 break
  14.             client = OmegleWebClient(self, self.context)
  15.             self.ctx["clients"].append(client)
  16.             client.start()
  17.             cids.append(client.id)