diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-06-12 05:47:51 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-06-12 05:47:51 +0000 |
commit | b1865524b3636c04716c7b058ddf6f8465f9df84 (patch) | |
tree | 371e5b40e61769685eb4cc4ea6866c9a6f65bddc | |
parent | d6ecf1939f0d966225518dc550dd6b8a4262e257 (diff) | |
download | omegle-b1865524b3636c04716c7b058ddf6f8465f9df84.tar.gz omegle-b1865524b3636c04716c7b058ddf6f8465f9df84.zip |
proxy
git-svn-id: http://xapek.org/svn/common/omegle@1127 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-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() |