Changeset

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 5092:6594e7a9a174
children 5094:c92c87daa09e
files mod_sasl2_bind2/README.md mod_sasl2_bind2/mod_sasl2_bind2.lua
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_sasl2_bind2/README.md	Mon Nov 28 12:06:28 2022 +0000
+++ b/mod_sasl2_bind2/README.md	Mon Nov 28 19:05:48 2022 +0100
@@ -2,6 +2,9 @@
 labels:
 - Stage-Beta
 summary: "Bind 2 integration with SASL2"
+rockspec:
+  dependencies:
+  - mod_sasl2
 ---
 
 Add support for [XEP-0386: Bind 2], which is a new method for clients to bind
--- a/mod_sasl2_bind2/mod_sasl2_bind2.lua	Mon Nov 28 12:06:28 2022 +0000
+++ b/mod_sasl2_bind2/mod_sasl2_bind2.lua	Mon Nov 28 19:05:48 2022 +0100
@@ -8,6 +8,8 @@
 local xmlns_bind2 = "urn:xmpp:bind:0";
 local xmlns_sasl2 = "urn:xmpp:sasl:2";
 
+module:depends("sasl2");
+
 -- Advertise what we can do
 
 module:hook("advertise-sasl-features", function(event)