comparison mod_sasl2_bind2/mod_sasl2_bind2.lua @ 5093:f2dfbcc676a6

mod_sasl2_bind2: Add explicit dependency on mod_sasl2 Ensures mod_sasl2 is installed and loaded so it can fire the relevant events.
author Kim Alvefur <zash@zash.se>
date Mon, 28 Nov 2022 19:05:48 +0100
parents bc491065c221
children 6361afcda1a3
comparison
equal deleted inserted replaced
5092:6594e7a9a174 5093:f2dfbcc676a6
5 5
6 local sm_bind_resource = require "core.sessionmanager".bind_resource; 6 local sm_bind_resource = require "core.sessionmanager".bind_resource;
7 7
8 local xmlns_bind2 = "urn:xmpp:bind:0"; 8 local xmlns_bind2 = "urn:xmpp:bind:0";
9 local xmlns_sasl2 = "urn:xmpp:sasl:2"; 9 local xmlns_sasl2 = "urn:xmpp:sasl:2";
10
11 module:depends("sasl2");
10 12
11 -- Advertise what we can do 13 -- Advertise what we can do
12 14
13 module:hook("advertise-sasl-features", function(event) 15 module:hook("advertise-sasl-features", function(event)
14 local bind = st.stanza("bind", { xmlns = xmlns_bind2 }); 16 local bind = st.stanza("bind", { xmlns = xmlns_bind2 });