mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fixed stupid verisign bug.
This commit is contained in:
parent
3e28059c9e
commit
e40183f1e5
@ -622,7 +622,10 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
ip = socket.gethostbyname(host)
|
ip = socket.gethostbyname(host)
|
||||||
irc.reply(msg, ip)
|
if ip == '64.94.110.11':
|
||||||
|
irc.reply(msg, 'Host not found.')
|
||||||
|
else:
|
||||||
|
irc.reply(msg, ip)
|
||||||
except socket.error:
|
except socket.error:
|
||||||
irc.error(msg, 'Host not found.')
|
irc.error(msg, 'Host not found.')
|
||||||
dns = privmsgs.thread(dns)
|
dns = privmsgs.thread(dns)
|
||||||
|
@ -90,6 +90,7 @@ class FunCommandsTest(PluginTestCase, PluginDocumentation):
|
|||||||
|
|
||||||
def testDns(self):
|
def testDns(self):
|
||||||
self.assertNotError('dns slashdot.org')
|
self.assertNotError('dns slashdot.org')
|
||||||
|
self.assertResponse('dns alsdkjfaslkdfjaslkdfj.com', 'Host not found.')
|
||||||
|
|
||||||
def testWhois(self):
|
def testWhois(self):
|
||||||
self.assertNotError('whois ohio-state.edu')
|
self.assertNotError('whois ohio-state.edu')
|
||||||
|
Loading…
Reference in New Issue
Block a user