Web: Use title instead of parser.title.

This commit is contained in:
Jussi Timperi 2015-10-22 17:13:47 +03:00
parent df7689cc2e
commit 5cf1b34f55

View File

@ -158,7 +158,7 @@ class Web(callbacks.PluginRegexp):
parser.close() parser.close()
title = parser.title title = parser.title
if title: if title:
title = utils.web.htmlToText(parser.title.strip()) title = utils.web.htmlToText(title.strip())
elif raiseErrors: elif raiseErrors:
if len(text) < size: if len(text) < size:
irc.reply(_('That URL appears to have no HTML title.')) irc.reply(_('That URL appears to have no HTML title.'))