From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/dns.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/dns.py') diff --git a/modules/dns.py b/modules/dns.py index 19ef7ea0..aa00b870 100644 --- a/modules/dns.py +++ b/modules/dns.py @@ -4,10 +4,11 @@ from src import ModuleManager, Utils class Module(ModuleManager.BaseModule): _name = "DNS" - @Utils.hook("received.command.dns", min_args=1, usage="") + @Utils.hook("received.command.dns", min_args=1) def dns(self, event): """ - Get all addresses for a given hostname (IPv4/IPv6) + :help: Get all addresses for a given hostname (IPv4/IPv6) + :usage: """ hostname = event["args_split"][0] try: -- cgit v1.3.1-10-gc9f91