Software /
code /
verse
Changeset
160:5cbbfe42212e
plugins.bind: Fix the bind-success event, now fires with data { jid = result_jid } (thanks Jon)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Dec 2010 01:06:29 +0000 |
parents | 159:88cc513e81c8 |
children | 161:b177bcea2006 |
files | plugins/bind.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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();