From b89463084b239985268edf7d3ff08a08f99987bd Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 28 May 2009 10:01:35 +0000 Subject: imessage git-svn-id: http://xapek.org/svn/common/omegle@1023 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1