Software /
code /
prosody-modules
Diff
mod_conversejs/mod_conversejs.lua @ 4849:192b7aaa3888
mod_conversejs: Try to depend on mod_bookmarks in trunk else mod_bookmarks2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 05 Jan 2022 21:22:13 +0100 |
parent | 4843:60887967b797 |
child | 4855:0c9128145bcf |
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua Wed Jan 05 00:06:24 2022 +0100 +++ b/mod_conversejs/mod_conversejs.lua Wed Jan 05 21:22:13 2022 +0100 @@ -16,9 +16,13 @@ module:depends("websocket"); end); -pcall(function () - module:depends("bookmarks2"); -end); +if not pcall(function() + module:depends("bookmarks"); +end) then + pcall(function() + module:depends("bookmarks2") + end); +end local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org");