comparison mod_bookmarks/mod_bookmarks.lua @ 3678:7575399ae544

mod_bookmarks, mod_bookmarks2: Refuse to load if the other one is also loaded.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Sep 2019 14:46:18 +0200
parents 7893115bf382
children
comparison
equal deleted inserted replaced
3677:90f88a643973 3678:7575399ae544
1 local mm = require "core.modulemanager";
2 if mm.get_modules_for_host(module.host):contains("bookmarks2") then
3 error("mod_bookmarks and mod_bookmarks2 are conflicting, please disable one of them.", 0);
4 end
5
1 local st = require "util.stanza"; 6 local st = require "util.stanza";
2 local jid_split = require "util.jid".split; 7 local jid_split = require "util.jid".split;
3 8
4 local mod_pep = module:depends "pep"; 9 local mod_pep = module:depends "pep";
5 local private_storage = module:open_store("private", "map"); 10 local private_storage = module:open_store("private", "map");