Software /
code /
verse
Changeset
43:a33036b7e5ab
verse.plugins.bind: Fix incorrect variable name causing traceback on unsuccessful bind
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 04 Jan 2010 15:21:32 +0000 |
parents | 42:6006e6bb1c28 |
children | 44:37396504de5f |
files | plugins/bind.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/bind.lua Sun Jan 03 18:01:54 2010 +0000 +++ b/plugins/bind.lua Mon Jan 04 15:21:32 2010 +0000 @@ -16,8 +16,8 @@ stream.jid, stream.bound = result_jid, true; stream:event("binding-success", full_jid); elseif reply.attr.type == "error" then - local err = result:child_with_name("error"); - local type, condition, text = result:get_error(); + local err = reply:child_with_name("error"); + local type, condition, text = reply:get_error(); stream:event("binding-failure", { error = condition, text = text, type = type }); end end);