changeset 5094:c92c87daa09e

mod_sasl2_sm: 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:12:34 +0100
parents f2dfbcc676a6
children 745c7f4cca40
files mod_sasl2_sm/README.md mod_sasl2_sm/mod_sasl2_sm.lua
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_sasl2_sm/README.md	Mon Nov 28 19:05:48 2022 +0100
+++ b/mod_sasl2_sm/README.md	Mon Nov 28 19:12:34 2022 +0100
@@ -2,6 +2,9 @@
 labels:
 - Stage-Beta
 summary: "XEP-0198 integration with SASL2"
+rockspec:
+  dependencies:
+  - mod_sasl2
 ---
 
 Add support for inlining stream management negotiation into the SASL2 process.
--- a/mod_sasl2_sm/mod_sasl2_sm.lua	Mon Nov 28 19:05:48 2022 +0100
+++ b/mod_sasl2_sm/mod_sasl2_sm.lua	Mon Nov 28 19:12:34 2022 +0100
@@ -5,6 +5,8 @@
 local xmlns_sasl2 = "urn:xmpp:sasl:2";
 local xmlns_sm = "urn:xmpp:sm:3";
 
+module:depends("sasl2");
+
 -- Advertise what we can do
 
 module:hook("advertise-sasl-features", function (event)