# HG changeset patch # User Kim Alvefur # Date 1322115026 -3600 # Node ID 19356e2150f3efc0262f3e8ff2028256b9555aa9 # Parent 6dbd61ecd5d0a4f1c60f53c6d8414cb1dab6945a plugins.bind: get_child_text() diff -r 6dbd61ecd5d0 -r 19356e2150f3 plugins/bind.lua --- 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 });