From cbc91c6a26f83b4444108860230cb04b7fb66760 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 24 Sep 2008 16:30:31 +0000 Subject: [PATCH] Use a more appropriate message if the URL definitely has no title. --- plugins/Web/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index d1558a2b8..2e1d1787f 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -177,6 +177,8 @@ class Web(callbacks.PluginRegexp): 'already be set, though', url) if parser.title: irc.reply(utils.web.htmlToText(parser.title.strip())) + elif len(text) < size: + irc.reply('That URL appears to have no HTML title.') else: irc.reply(format('That URL appears to have no HTML title ' 'within the first %i bytes.', size))