Software /
code /
prosody-modules
Comparison
mod_omemo_all_access/mod_omemo_all_access.lua @ 3209:5b02241a254e
mod_omemo_all_access: Log error when used with incompatible mod_pep
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 03 Aug 2018 11:24:36 +0100 |
parent | 2858:150a7bd59043 |
child | 3210:9505282ad24f |
comparison
equal
deleted
inserted
replaced
3208:e55172ce68d4 | 3209:5b02241a254e |
---|---|
9 local white_listed_namespace = "eu.siacs.conversations.axolotl." | 9 local white_listed_namespace = "eu.siacs.conversations.axolotl." |
10 local disco_feature_namespace = white_listed_namespace .. "whitelisted" | 10 local disco_feature_namespace = white_listed_namespace .. "whitelisted" |
11 | 11 |
12 local mod_pep = module:depends"pep"; | 12 local mod_pep = module:depends"pep"; |
13 local pep_data = mod_pep.module.save().data; | 13 local pep_data = mod_pep.module.save().data; |
14 | |
15 if not pep_data then | |
16 module:log("error", "This module is not compatible with your version of mod_pep"); | |
17 return false; | |
18 end | |
14 | 19 |
15 local function on_account_disco_info(event) | 20 local function on_account_disco_info(event) |
16 (event.reply or event.stanza):tag("feature", {var=disco_feature_namespace}):up(); | 21 (event.reply or event.stanza):tag("feature", {var=disco_feature_namespace}):up(); |
17 end | 22 end |
18 | 23 |