summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.py')
-rw-r--r--proxy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/proxy.py b/proxy.py
index 07a83d7..39c72a4 100644
--- a/proxy.py
+++ b/proxy.py
@@ -16,6 +16,7 @@ class OmegleProxyChat(OmegleChat):
self.name = name
self.color = color
self.idlecount = 0
+ self.partner = None
def c(self,str,bold=False):
if bold:
@@ -36,6 +37,7 @@ class OmegleProxyChat(OmegleChat):
def on_message(self,message):
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:
self.partner.send(message)
@@ -44,6 +46,8 @@ class OmegleProxyChat(OmegleChat):
print self.c("%s [EVT] %s Connection confirmed" % (time.strftime("%H:%M:%S"), self.name))
def on_typing(self):
+ 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:
self.partner.typing()