Sun, 05 Dec 2010 01:06:29 +0000
plugins.bind: Fix the bind-success event, now fires with data { jid = result_jid } (thanks Jon)
plugins/bind.lua | file | annotate | diff | comparison | revisions |
--- 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();