mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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)
|
'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))
|
||||||
|
Loading…
Reference in New Issue
Block a user