From b1865524b3636c04716c7b058ddf6f8465f9df84 Mon Sep 17 00:00:00 2001 From: yvesf Date: Fri, 12 Jun 2009 05:47:51 +0000 Subject: proxy git-svn-id: http://xapek.org/svn/common/omegle@1127 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- proxy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy.py b/proxy.py index d37d9df..26aa857 100644 --- a/proxy.py +++ b/proxy.py @@ -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() -- cgit v1.2.1