mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Use a more appropriate message if the URL definitely has no title.
This commit is contained in:
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))
|
||||
|
Loading…
Reference in New Issue
Block a user