From c6bb1110cbe9b2a9e9b31c5fc66e1e5c7aa5deba Mon Sep 17 00:00:00 2001 From: yvesf Date: Wed, 10 Jun 2009 08:17:19 +0000 Subject: ibo git-svn-id: http://xapek.org/svn/common/omegle@1098 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'omegle.py') diff --git a/omegle.py b/omegle.py index 422c587..41f012e 100644 --- a/omegle.py +++ b/omegle.py @@ -129,6 +129,10 @@ class OmegleChat(RESTClient): #convert utf8 to RAW-utf8 msg = msg.encode("utf8") + if not self.is_confirmed: + self.logger.error("Cant send message if not is_confirmed") + return ###XXX raise?? + r = RESTClient.request(self,"POST","/send",urllib.urlencode({'id':self.id,'msg':msg})) body = r.read() if body != "win": -- cgit v1.2.1