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
1 changed files with 2 additions and 0 deletions

View File

@ -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))