# HG changeset patch # User Matthew Wild # Date 1275184600 -3600 # Node ID 37540f89d4e28b72783eea95bd345e717e781ac5 # Parent d4f8fc71d9364ede364989e0e8b9e66a086dc06a clix.lua: Hook Verse's new 'ready' event instead of 'binding-success' and switch to 'bind-failure' for hooking resource bind failures diff -r d4f8fc71d936 -r 37540f89d4e2 clix.lua --- 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);