Software /
code /
prosody-modules
Diff
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 |
parent | 3544:7893115bf382 |
line wrap: on
line diff
--- a/mod_bookmarks/mod_bookmarks.lua Sat Sep 28 14:27:13 2019 +0200 +++ b/mod_bookmarks/mod_bookmarks.lua Sat Sep 28 14:46:18 2019 +0200 @@ -1,3 +1,8 @@ +local mm = require "core.modulemanager"; +if mm.get_modules_for_host(module.host):contains("bookmarks2") then + error("mod_bookmarks and mod_bookmarks2 are conflicting, please disable one of them.", 0); +end + local st = require "util.stanza"; local jid_split = require "util.jid".split;