summaryrefslogtreecommitdiff
path: root/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.py')
-rw-r--r--proxy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/proxy.py b/proxy.py
index 39c3fff..c995e51 100644
--- a/proxy.py
+++ b/proxy.py
@@ -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):