Tue, 21 Dec 2010 15:39:01 +0000
hg2pubsub: Exit on auth failure
hg2pubsub.lua | file | annotate | diff | comparison | revisions |
--- a/hg2pubsub.lua Tue Dec 21 15:35:07 2010 +0000 +++ b/hg2pubsub.lua Tue Dec 21 15:39:01 2010 +0000 @@ -54,9 +54,8 @@ conn:close(); end); -conn:hook("disconnected", function () - os.exit(); -end); +conn:hook("authentication-failure", os.exit); +conn:hook("disconnected", os.exit); conn:connect_client(jid, password);