Changeset

35:37540f89d4e2

clix.lua: Hook Verse's new 'ready' event instead of 'binding-success' and switch to 'bind-failure' for hooking resource bind failures
author Matthew Wild <mwild1@gmail.com>
date Sun, 30 May 2010 02:56:40 +0100
parents 34:d4f8fc71d936
children 36:0712fda16ab6
files clix.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);