diff options
| author | 2018-08-31 10:51:47 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:51:47 +0100 | |
| commit | 90ce92dc39395444862edfc7946ef7a1195f2464 (patch) | |
| tree | 6832c146a15879df292d265083bfe5795cbdfa69 /modules/dns.py | |
| parent | Reformat (diff) | |
Revert "Reformat"
This reverts commit abed9cf
Diffstat (limited to 'modules/dns.py')
| -rw-r--r-- | modules/dns.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/dns.py b/modules/dns.py index d725889f..2935e1bf 100644 --- a/modules/dns.py +++ b/modules/dns.py @@ -1,9 +1,7 @@ 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, @@ -14,7 +12,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 |
