lualoader: config: fix module enabled check

A last minute rewrite left this logically wrong; if it's present in
modules_blacklist, then we do not load it.
This commit is contained in:
kevans 2020-12-12 14:53:34 +00:00
parent 51f2b3e80a
commit f282efad7f

View File

@ -718,7 +718,7 @@ function config.isModuleEnabled(modname)
end
local blacklist = getBlacklist()
return blacklist[modname]
return not blacklist[modname]
end
hook.registerType("config.loaded")