diff options
Diffstat (limited to 'proxy.py')
-rw-r--r-- | proxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -42,7 +42,7 @@ class OmegleProxyChat(OmegleChat): self.idlecount = 0 self.partner.idlecount = 0 print self.c("%s [MSG] %s: %s" %(time.strftime("%H:%M:%S"), self.name, message.encode("utf-8")),bold=True) - if self.partner.is_connected: + if self.partner.is_confirmed: try: self.partner.send(message) except Exception,e: @@ -61,17 +61,17 @@ class OmegleProxyChat(OmegleChat): self.idlecount = 0 self.partner.idlecount = 0 print self.c("%s [EVT] %s is typing" % (time.strftime("%H:%M:%S"), self.name)) - if self.partner.is_connected: + if self.partner.is_confirmed: self.partner.typing() def on_stopped_typing(self): print self.c("%s [EVT] %s stopped typing" % (time.strftime("%H:%M:%S"), self.name)) - if self.partner.is_connected: + if self.partner.is_confirmed: self.partner.stopped_typing() def on_disconnect(self): print self.c("%s [EVT] %s disconnect" % (time.strftime("%H:%M:%S"), self.name)) - if self.partner.is_connected: + if self.partner.is_confirmed: self.partner.disconnect() self.disconnect_event.set() |