plugins/bind.lua

changeset 457
73d4eb93657b
parent 300
b1d50f9a04c7
child 490
6b2f31da9610
--- a/plugins/bind.lua	Fri Mar 03 12:10:54 2023 +0000
+++ b/plugins/bind.lua	Thu Mar 16 11:41:52 2023 +0000
@@ -7,7 +7,7 @@
 	local function handle_features(features)
 		if stream.bound then return; end
 		stream:debug("Binding resource...");
-		stream:send_iq(verse.iq({ type = "set" }):tag("bind", {xmlns=xmlns_bind}):tag("resource"):text(stream.resource),
+		stream:send_iq(verse.iq({ id="bind",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