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);