diff options
Diffstat (limited to 'omegle.py')
-rw-r--r-- | omegle.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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": |