plugins/bind.lua

changeset 245
19356e2150f3
parent 197
7e98cf2c1d8d
child 250
a5ac643a7fd6
--- 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