diff --git a/mod_mix/mod_mix.lua b/mod_mix/mod_mix.lua index 357c591..dbb6901 100644 --- a/mod_mix/mod_mix.lua +++ b/mod_mix/mod_mix.lua @@ -1,6 +1,10 @@ local host = module:get_host(); +local mm = require("core.modulemanger"); if module:get_host_type() ~= "component" then - error("MIX should be loaded as a component", 0); + error("mix should be loaded as a component", 0); +end +if mm.is_loaded(host, "mix_pam") then + error("mix and mix_pam shouldn't be loaded together on the same host"); end local st = require("util.stanza");