mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Internet: Make @dns show all addresses. Closes GH-786.
This commit is contained in:
parent
0ce8ef8299
commit
0587af90a1
@ -56,8 +56,9 @@ class Internet(callbacks.Plugin):
|
||||
irc.reply(hostname)
|
||||
else:
|
||||
try:
|
||||
ip = socket.getaddrinfo(host, None)[0][4][0]
|
||||
irc.reply(ip)
|
||||
ips = socket.getaddrinfo(host, None)
|
||||
ips = map(lambda x:x[4][0], ips)
|
||||
irc.replies(ips)
|
||||
except socket.error:
|
||||
irc.reply(_('Host not found.'))
|
||||
dns = wrap(dns, ['something'])
|
||||
|
Loading…
Reference in New Issue
Block a user