# HG changeset patch # User Matthew Wild # Date 1291511189 0 # Node ID 5cbbfe42212ed66a970e46fa561a0d77734713df # Parent 88cc513e81c863e22429716d325d1ae59bbe47a3 plugins.bind: Fix the bind-success event, now fires with data { jid = result_jid } (thanks Jon) diff -r 88cc513e81c8 -r 5cbbfe42212e plugins/bind.lua --- 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();