diff options
Diffstat (limited to 'proxy.py')
-rw-r--r-- | proxy.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() |