summaryrefslogtreecommitdiff
path: root/server/src/matcher/find_lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/find_lib.lua')
-rw-r--r--server/src/matcher/find_lib.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/matcher/find_lib.lua b/server/src/matcher/find_lib.lua
index 79cc05f9..f6c453b4 100644
--- a/server/src/matcher/find_lib.lua
+++ b/server/src/matcher/find_lib.lua
@@ -104,7 +104,10 @@ local function checkParent(value, name, lib)
end
local function findLib(var)
- local value = var.value or var
+ local value = var.value
+ if value.lib then
+ return value.lib, value.lib.name, false
+ end
for libname, info in pairs(library.global) do
local fullKey = checkSource(value, libname, info.lib)
if fullKey then