summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-12 05:47:51 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-12 05:47:51 +0000
commitb1865524b3636c04716c7b058ddf6f8465f9df84 (patch)
tree371e5b40e61769685eb4cc4ea6866c9a6f65bddc
parentd6ecf1939f0d966225518dc550dd6b8a4262e257 (diff)
downloadomegle-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.py8
1 files 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()