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:
Kyle Evans 2020-12-12 14:53:34 +00:00
parent 6f139d796f
commit 10aeb6cdab

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")