summaryrefslogtreecommitdiff
path: root/omegle.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-10 08:17:19 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-06-10 08:17:19 +0000
commitc6bb1110cbe9b2a9e9b31c5fc66e1e5c7aa5deba (patch)
tree99a4f40bd3df9c79bd23a7a2850144932bb96a24 /omegle.py
parent7279c2ba6e9ad29a8e635c21d5549b21d7b8c461 (diff)
downloadomegle-c6bb1110cbe9b2a9e9b31c5fc66e1e5c7aa5deba.tar.gz
omegle-c6bb1110cbe9b2a9e9b31c5fc66e1e5c7aa5deba.zip
ibo
git-svn-id: http://xapek.org/svn/common/omegle@1098 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'omegle.py')
-rw-r--r--omegle.py4
1 files changed, 4 insertions, 0 deletions
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":