diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/dns.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/dns.py')
| -rw-r--r-- | modules/dns.py | 5 |
1 files changed, 3 insertions, 2 deletions
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="<hostname>") + @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> """ hostname = event["args_split"][0] try: |
