From afa583dfcdcf1e3a53ccb88691985a1c691046d0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 21 Sep 2022 15:00:06 +0100 Subject: mod_saslauth: Put in stream:features per XEP-0440 0.4.0 --- plugins/mod_saslauth.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index ddef3f17..4c8858cb 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -321,15 +321,15 @@ module:hook("stream-features", function(event) for mechanism in usable_mechanisms do mechanisms:tag("mechanism"):text(mechanism):up(); end + features:add_child(mechanisms); if not channel_bindings:empty() then -- XXX XEP-0440 is Experimental - mechanisms:tag("sasl-channel-binding", {xmlns='urn:xmpp:sasl-cb:0'}) + features:tag("sasl-channel-binding", {xmlns='urn:xmpp:sasl-cb:0'}) for channel_binding in channel_bindings do - mechanisms:tag("channel-binding", {type=channel_binding}):up() + features:tag("channel-binding", {type=channel_binding}):up() end - mechanisms:up(); + features:up(); end - features:add_child(mechanisms); return; end -- cgit v1.2.3