aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-13 00:25:05 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2019-01-13 00:25:05 +0100
commit2703711c00e1ab689e8fc1099abae15c21fb089a (patch)
tree4648b4032bd389dee851227e39469bfd630d83f5 /src
parent776a0273b5dc02498fcc24373bdb76ae608219fa (diff)
downloadrspamd-2703711c00e1ab689e8fc1099abae15c21fb089a.tar.gz
rspamd-2703711c00e1ab689e8fc1099abae15c21fb089a.zip
[Minor] lua_scanners - module_name, typos, logging
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/antivirus.lua1
-rw-r--r--src/plugins/lua/external_services.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua
index 2f8f948ad..07dbba2f0 100644
--- a/src/plugins/lua/antivirus.lua
+++ b/src/plugins/lua/antivirus.lua
@@ -164,6 +164,7 @@ if opts and type(opts) == 'table' then
for k, m in pairs(opts) do
if type(m) == 'table' and m.servers then
if not m.type then m.type = k end
+ if not m.name then m.name = k end
local cb = add_antivirus_rule(k, m)
if not cb then
diff --git a/src/plugins/lua/external_services.lua b/src/plugins/lua/external_services.lua
index 1b6c9b752..d9481461f 100644
--- a/src/plugins/lua/external_services.lua
+++ b/src/plugins/lua/external_services.lua
@@ -118,6 +118,7 @@ if opts and type(opts) == 'table' then
for k, m in pairs(opts) do
if type(m) == 'table' and m.servers then
if not m.type then m.type = k end
+ if not m.name then m.name = k end
local cb = add_scanner_rule(k, m)
if not cb then