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
1 changed files with 2 additions and 0 deletions

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()