Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 6304:ace08821e4ee
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Jul 2014 23:05:27 +0200 |
parent | 6302:76699a0ae4c4 |
child | 6424:89c42aff8510 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Mon Jun 30 13:12:16 2014 +0200 +++ b/plugins/mod_saslauth.lua Fri Jul 04 23:05:27 2014 +0200 @@ -284,7 +284,7 @@ local resource; if stanza.attr.type == "set" then local bind = stanza.tags[1]; - resource = bind:child_with_name("resource"); + resource = bind:get_child("resource"); resource = resource and #resource.tags == 0 and resource[1] or nil; end local success, err_type, err, err_msg = sm_bind_resource(origin, resource);