summaryrefslogtreecommitdiff
path: root/omegle.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-28 15:55:27 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-05-28 15:55:27 +0000
commit486124c5ad6919bd8029918da1c8084b01112906 (patch)
treeeaa68f75508e582c4b2948a905b755a7a169cbd6 /omegle.py
parentd636287ebd99cf4ad044624970869eb97ffafe47 (diff)
downloadomegle-486124c5ad6919bd8029918da1c8084b01112906.tar.gz
omegle-486124c5ad6919bd8029918da1c8084b01112906.zip
blah
git-svn-id: http://xapek.org/svn/common/omegle@1030 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'omegle.py')
-rw-r--r--omegle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/omegle.py b/omegle.py
index 9a75a26..2df4ee3 100644
--- a/omegle.py
+++ b/omegle.py
@@ -189,7 +189,8 @@ if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
print "Lets chat. Type \"quit\" to disconnect"
chat = OmegleChat()
- def exit(self):
+ def exit():
+ OmegleChat.on_disconnect(chat)
sys.exit(0)
chat.on_disconnect = exit
chat.start()