plugins.bind: get_child_text()

Thu, 24 Nov 2011 07:10:26 +0100

author
Kim Alvefur <zash@zash.se>
date
Thu, 24 Nov 2011 07:10:26 +0100
changeset 245
19356e2150f3
parent 244
6dbd61ecd5d0
child 246
6c60d19e2180

plugins.bind: get_child_text()

plugins/bind.lua file | annotate | diff | comparison | revisions
--- 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 });

mercurial