Software /
code /
verse
Diff
plugins/bind.lua @ 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 |
parent | 78:f4188eff53a7 |
child | 197:7e98cf2c1d8d |
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();