Use plain `string:find` when matching plugin directories
This commit is contained in:
parent
ccba91261d
commit
76334a7946
|
@ -692,7 +692,7 @@ function core.load_plugins()
|
||||||
if is_lua_file then
|
if is_lua_file then
|
||||||
if not version_match then
|
if not version_match then
|
||||||
core.log_quiet("Version mismatch for plugin %q from %s", basename, plugin_dir)
|
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)
|
table.insert(list, filename)
|
||||||
end
|
end
|
||||||
if version_match and config.plugins[basename] ~= false then
|
if version_match and config.plugins[basename] ~= false then
|
||||||
|
|
Loading…
Reference in New Issue