summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-29 19:06:03 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-29 19:06:03 +0000
commit639b640e1b2626f54232fafb7895f27a2a65a0a5 (patch)
tree16738e4c838e0e3fc68ae69c1c710ac43b42395a
parentc04a8621abde66c598569c0e1177b10fdbfe52eb (diff)
downloadomegle-639b640e1b2626f54232fafb7895f27a2a65a0a5.tar.gz
omegle-639b640e1b2626f54232fafb7895f27a2a65a0a5.zip
fuck
git-svn-id: http://xapek.org/svn/common/omegle@1049 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
-rw-r--r--omegle.py6
-rw-r--r--proxy.py2
2 files changed, 3 insertions, 5 deletions
diff --git a/omegle.py b/omegle.py
index ab64c09..5d92372 100644
--- a/omegle.py
+++ b/omegle.py
@@ -91,16 +91,14 @@ class OmegleChat(RESTClient):
self.is_connected = False
self.timer.stop()
if self.is_confirmed:
- self.is_confirmed = False
- self.id = None
r = RESTClient.request(self,"POST", "/disconnect", urllib.urlencode({'id': self.id}))
body = r.read()
self.logger.debug("/disconnect sent. Read: %s" % body)
if body == "win":
- pass
+ self.is_confirmed = False
+ self.id = None
else:
self.is_connected = True #disconnect failed
- self.is_confirmed = True
raise Exception("/disconnect; Bad response: %s" % body)
def _events(self):
diff --git a/proxy.py b/proxy.py
index 2ea2798..2d5fb60 100644
--- a/proxy.py
+++ b/proxy.py
@@ -56,7 +56,7 @@ if __name__ == "__main__":
"blue":34,"magenta":35, "cyan":36, "white":37, "black":38, "black":39}
logging.basicConfig(level=logging.DEBUG)
- logging.getLogger().info("press ctrl-c to abort")
+ print "press ctrl-c to abort"
event = Event()
A=OmegleProxyChat(event,"A",colors['red'])