plugins/bind.lua

changeset 160
5cbbfe42212e
parent 78
f4188eff53a7
child 197
7e98cf2c1d8d
--- a/plugins/bind.lua	Fri Dec 03 04:11:18 2010 +0000
+++ b/plugins/bind.lua	Sun Dec 05 01:06:29 2010 +0000
@@ -14,7 +14,7 @@
 								:get_text();
 					stream.username, stream.host, stream.resource = jid.split(result_jid);
 					stream.jid, stream.bound = result_jid, true;
-					stream:event("bind-success", full_jid);
+					stream:event("bind-success", { jid = result_jid });
 				elseif reply.attr.type == "error" then
 					local err = reply:child_with_name("error");
 					local type, condition, text = reply:get_error();

mercurial