Changeset

39:07192be5020b

plugins.bind: Requested JID should be in <jid/> tag (thanks Maranda :) )
author Matthew Wild <mwild1@gmail.com>
date Tue, 22 Dec 2009 01:48:01 +0000
parents 38:c40cc28ac7df
children 40:afd037420977
files plugins/bind.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/bind.lua	Mon Dec 21 19:28:02 2009 +0000
+++ b/plugins/bind.lua	Tue Dec 22 01:48:01 2009 +0000
@@ -5,7 +5,7 @@
 	local function handle_features(features)
 		if stream.bound then return; end
 		stream:debug("Binding resource...");
-		stream:send_iq(st.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):text(stream.jid),
+		stream:send_iq(st.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("jid"):text(stream.jid),
 			function (reply)
 				if reply.attr.type == "result" then
 					local result_jid = reply