summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-28 10:01:35 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-28 10:01:35 +0000
commitb89463084b239985268edf7d3ff08a08f99987bd (patch)
tree0bdafb5c81283edfa7b82cc88ac71846383c217e
parent148facadf4b6ca036f1f4d52ed82108a665550b4 (diff)
downloadomegle-b89463084b239985268edf7d3ff08a08f99987bd.tar.gz
omegle-b89463084b239985268edf7d3ff08a08f99987bd.zip
imessage
git-svn-id: http://xapek.org/svn/common/omegle@1023 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-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):