Mercurial > prosody-modules
comparison mod_sasl2_sm/mod_sasl2_sm.lua @ 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 | bc491065c221 |
children | 92ce3859df63 |
comparison
equal
deleted
inserted
replaced
5093:f2dfbcc676a6 | 5094:c92c87daa09e |
---|---|
2 | 2 |
3 local mod_smacks = module:depends("smacks"); | 3 local mod_smacks = module:depends("smacks"); |
4 | 4 |
5 local xmlns_sasl2 = "urn:xmpp:sasl:2"; | 5 local xmlns_sasl2 = "urn:xmpp:sasl:2"; |
6 local xmlns_sm = "urn:xmpp:sm:3"; | 6 local xmlns_sm = "urn:xmpp:sm:3"; |
7 | |
8 module:depends("sasl2"); | |
7 | 9 |
8 -- Advertise what we can do | 10 -- Advertise what we can do |
9 | 11 |
10 module:hook("advertise-sasl-features", function (event) | 12 module:hook("advertise-sasl-features", function (event) |
11 local features = event.features; | 13 local features = event.features; |