aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/multimap.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/multimap.lua')
-rw-r--r--src/plugins/lua/multimap.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 756996ede..2ba14c653 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -78,10 +78,12 @@ local function check_multimap(task)
if fields then
_.each(function(e)
local match = e[fields[1]]
- if fields[2] then
- match = fields[2](match)
+ if match then
+ if fields[2] then
+ match = fields[2](match)
+ end
+ ret = match_rule(r, match)
end
- ret = match_rule(r, match)
end, ls)
else
_.each(function(e) ret = match_rule(r, e) end, ls)