From f332c6abc979b20ceaa296d441c4861e590f016a Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 13 Dec 2019 15:12:21 +0000 Subject: [PATCH] set dnsbl _name to DNSBL, better wording than "failed" --- modules/dnsbl/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/dnsbl/__init__.py b/modules/dnsbl/__init__.py index 69bb189f..495cbd8c 100644 --- a/modules/dnsbl/__init__.py +++ b/modules/dnsbl/__init__.py @@ -4,6 +4,8 @@ import dns.resolver from . import lists as _lists class Module(ModuleManager.BaseModule): + _name = "DNSBL" + @utils.hook("received.command.dnsbl") def dnsbl(self, event): args = event["args_split"] @@ -24,7 +26,7 @@ class Module(ModuleManager.BaseModule): failed = self._check_lists(lists, address) if failed: failed = ["%s (%s)" % item for item in failed] - event["stderr"].write("%s failed for lists: %s" % + event["stderr"].write("%s matched for lists: %s" % (address, ", ".join(failed))) else: event["stdout"].write("%s not found in blacklists" % address)