1
0
mirror of https://github.com/Mikaela/Limnoria.git synced 2025-04-12 10:57:51 +02:00

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

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