Software /
code /
verse
Diff
plugins/bind.lua @ 245:19356e2150f3
plugins.bind: get_child_text()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Nov 2011 07:10:26 +0100 |
parent | 197:7e98cf2c1d8d |
child | 250:a5ac643a7fd6 |
line wrap: on
line diff
--- a/plugins/bind.lua Thu Nov 24 07:10:26 2011 +0100 +++ b/plugins/bind.lua Thu Nov 24 07:10:26 2011 +0100 @@ -9,8 +9,7 @@ if reply.attr.type == "result" then local result_jid = reply :get_child("bind", xmlns_bind) - :get_child("jid") - :get_text(); + :get_child_text("jid"); stream.username, stream.host, stream.resource = jid.split(result_jid); stream.jid, stream.bound = result_jid, true; stream:event("bind-success", { jid = result_jid });