Software /
code /
prosody-modules
Comparison
mod_conversejs/mod_conversejs.lua @ 4855:0c9128145bcf
mod_conversejs: Reduce mod_bookmarks dependency to a warning
The luarocks dependency removed because the plugin installer is only
available in trunk, which now has mod_bookmarks available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 07 Jan 2022 23:33:12 +0100 |
parent | 4849:192b7aaa3888 |
child | 4891:99cdc7cde150 |
comparison
equal
deleted
inserted
replaced
4854:ee2463fbf794 | 4855:0c9128145bcf |
---|---|
14 | 14 |
15 local has_ws = pcall(function () | 15 local has_ws = pcall(function () |
16 module:depends("websocket"); | 16 module:depends("websocket"); |
17 end); | 17 end); |
18 | 18 |
19 if not pcall(function() | 19 do |
20 module:depends("bookmarks"); | 20 local mods = module:get_option_inherited_set("modules_enabled") - module:get_option_inherited_set("modules_disabled"); |
21 end) then | 21 if not mods:contains("bookmarks") or mods:contains("bookmarks2") then |
22 pcall(function() | 22 module:log("warn", "Converse.js does not work well without mod_bookmarks, consider enabling it"); |
23 module:depends("bookmarks2") | 23 end |
24 end); | |
25 end | 24 end |
26 | 25 |
27 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); | 26 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); |
28 | 27 |
29 local version = module:get_option_string("conversejs_version", ""); | 28 local version = module:get_option_string("conversejs_version", ""); |