Use plain `string:find` when matching plugin directories

This commit is contained in:
Guldoman 2021-08-29 02:23:47 +02:00 committed by Francesco Abbate
parent 7f338fc993
commit d3bd35b577
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ function core.load_plugins()
if is_lua_file then
if not version_match then
core.log_quiet("Version mismatch for plugin %q from %s", basename, plugin_dir)
local list = refused_list[plugin_dir:find(USERDIR) == 1 and 'userdir' or 'datadir'].plugins
local list = refused_list[plugin_dir:find(USERDIR, 1, true) == 1 and 'userdir' or 'datadir'].plugins
table.insert(list, filename)
end
if version_match and config.plugins[basename] ~= false then