Internet: Fix whois on .com domains (if too many domains matched).

This commit is contained in:
Valentin Lorentz 2013-01-05 18:20:52 +01:00
parent dd74982969
commit 10197b9956

View File

@ -83,6 +83,8 @@ class Internet(callbacks.Plugin):
except socket.error, e:
irc.error(str(e))
return
if usertld == 'com':
t.write('=')
t.write(domain.encode('ascii'))
t.write(b'\r\n')
s = t.read_all()