From fcb040371107e9881b040ffc1ff65688287e5c1c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 2 Apr 2003 16:03:38 +0000 Subject: [PATCH] Added proper response for invalid hostnames --- plugins/Http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Http.py b/plugins/Http.py index e356b0c05..99b3c6778 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -283,6 +283,8 @@ class Http(callbacks.Privmsg): html = m.group(1) s = utils.htmlToText(html, tagReplace='').strip('\xa0 ') irc.reply(msg, s[9:]) # Snip off "the site" + elif html.find('We could not get any results') != -1: + irc.reply('No results found for %s' % hostname) else: irc.error(msg, 'The format of the was odd.')