Changeset

245:19356e2150f3

plugins.bind: get_child_text()
author Kim Alvefur <zash@zash.se>
date Thu, 24 Nov 2011 07:10:26 +0100
parents 244:6dbd61ecd5d0
children 246:6c60d19e2180
files plugins/bind.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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 });