Sun, 30 May 2010 02:56:40 +0100
clix.lua: Hook Verse's new 'ready' event instead of 'binding-success' and switch to 'bind-failure' for hooking resource bind failures
clix.lua | file | annotate | diff | comparison | revisions |
--- a/clix.lua Sun May 30 02:13:05 2010 +0100 +++ b/clix.lua Sun May 30 02:56:40 2010 +0100 @@ -65,7 +65,7 @@ conn:error("Authentication failure ("..(err.condition or "unknown error")..")"..(err.text and (": "..err.text) or "")); conn:close(); end); - conn:hook("binding-success", function () + conn:hook("ready", function () if not opts.quiet then io.stderr:write("clix: connected as ", conn.jid, "\n"); end @@ -77,7 +77,7 @@ end return on_connect(conn); end); - conn:hook("binding-failure", function (err) + conn:hook("bind-failure", function (err) conn:error("Resource binding failure ("..(err.condition or "unknown error")..")"..(err.text and (": "..err.text) or "")); conn:close(); end);