summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.py')
-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()