From 486124c5ad6919bd8029918da1c8084b01112906 Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 28 May 2009 15:55:27 +0000 Subject: blah git-svn-id: http://xapek.org/svn/common/omegle@1030 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- omegle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1