plugins.bind: Requested JID^Wresource should be in <jid/>^W<resource/> tag (thanks Maranda :) )

Tue, 22 Dec 2009 01:57:02 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 22 Dec 2009 01:57:02 +0000
changeset 40
afd037420977
parent 39
07192be5020b
child 41
1a1bd8cd4bdb

plugins.bind: Requested JID^Wresource should be in <jid/>^W<resource/> tag (thanks Maranda :) )

plugins/bind.lua file | annotate | diff | comparison | revisions
--- a/plugins/bind.lua	Tue Dec 22 01:48:01 2009 +0000
+++ b/plugins/bind.lua	Tue Dec 22 01:57:02 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}):tag("jid"):text(stream.jid),
+		stream:send_iq(st.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("resource"):text(stream.resource),
 			function (reply)
 				if reply.attr.type == "result" then
 					local result_jid = reply

mercurial