Use a more appropriate message if the URL definitely has no title.

This commit is contained in:
James Vega 2008-09-24 16:30:31 +00:00
parent a946effc79
commit cbc91c6a26

View File

@ -177,6 +177,8 @@ class Web(callbacks.PluginRegexp):
'already be set, though', url) 'already be set, though', url)
if parser.title: if parser.title:
irc.reply(utils.web.htmlToText(parser.title.strip())) irc.reply(utils.web.htmlToText(parser.title.strip()))
elif len(text) < size:
irc.reply('That URL appears to have no HTML title.')
else: else:
irc.reply(format('That URL appears to have no HTML title ' irc.reply(format('That URL appears to have no HTML title '
'within the first %i bytes.', size)) 'within the first %i bytes.', size))