diff options
Diffstat (limited to 'proxy.py')
-rw-r--r-- | proxy.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,7 +22,8 @@ class OmegleProxyChat(OmegleChat): def on_message(self,message): print self.c("%s [MSG] %s: %s" %(time.strftime("%H:%M:%S"), self.name, message),bold=True) - self.partner.send(message) + if self.partner.is_connected: + self.partner.send(message) def on_connect(self): print self.c("%s [EVT] %s Connection confirmed" % (time.strftime("%H:%M:%S"), self.name)) def on_typing(self): |