From e40183f1e5df17061825b6d7978aea2f8d096f1a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 22 Sep 2003 18:00:16 +0000 Subject: [PATCH] Fixed stupid verisign bug. --- plugins/FunCommands.py | 5 ++++- test/test_FunCommands.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index a5def287e..a479807eb 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -622,7 +622,10 @@ class FunCommands(callbacks.Privmsg): else: try: 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: irc.error(msg, 'Host not found.') dns = privmsgs.thread(dns) diff --git a/test/test_FunCommands.py b/test/test_FunCommands.py index 487043e88..c7b899a14 100644 --- a/test/test_FunCommands.py +++ b/test/test_FunCommands.py @@ -90,6 +90,7 @@ class FunCommandsTest(PluginTestCase, PluginDocumentation): def testDns(self): self.assertNotError('dns slashdot.org') + self.assertResponse('dns alsdkjfaslkdfjaslkdfj.com', 'Host not found.') def testWhois(self): self.assertNotError('whois ohio-state.edu')