aboutsummaryrefslogtreecommitdiff
path: root/modules/dns.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dns.py')
-rw-r--r--modules/dns.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/dns.py b/modules/dns.py
index 2935e1bf..d725889f 100644
--- a/modules/dns.py
+++ b/modules/dns.py
@@ -1,7 +1,9 @@
import socket
+
class Module(object):
_name = "DNS"
+
def __init__(self, bot):
bot.events.on("received").on("command").on("dns").hook(
self.dns, min_args=1,
@@ -12,7 +14,7 @@ class Module(object):
hostname = event["args_split"][0]
try:
address_info = socket.getaddrinfo(hostname, 1, 0,
- socket.SOCK_DGRAM)
+ socket.SOCK_DGRAM)
except socket.gaierror:
event["stderr"].write("Failed to find hostname")
return