aboutsummaryrefslogtreecommitdiff
path: root/modules/dns.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/dns.py
parentreceived.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.py5
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: