SpiffyTitles: remove onDemandTitleError

This commit is contained in:
oddluck 2020-05-11 08:38:43 -04:00
parent 8fb4618d79
commit 200f37cbaa
3 changed files with 2 additions and 18 deletions

View File

@ -50,7 +50,7 @@ You can increase the verbosity of the logging in SpiffyTitles by issuing the fol
## On-Demand Titles
You can retrieve titles on demand using the `t` command. If something goes wrong, `onDemandTitleError`
You can retrieve titles on demand using the `t` command. If something goes wrong, `badLinkText`
will be sent instead of the link title.
## Available Options

View File

@ -158,20 +158,6 @@ conf.registerGlobalValue(
registry.Integer(600, _("""Link cache lifetime in seconds""")),
)
conf.registerChannelValue(
SpiffyTitles,
"onDemandTitleError",
registry.String(
"Error retrieving title.",
_(
"""
This error message is used when there is a problem getting
an on-demand title
"""
),
),
)
conf.registerChannelValue(
SpiffyTitles,
"ignoredMessagePattern",

View File

@ -1722,8 +1722,6 @@ class SpiffyTitles(callbacks.Plugin):
"""
channel = msg.args[0]
title = None
error_message = self.registryValue("onDemandTitleError", channel=channel)
err = ""
try:
title = self.get_title_by_url(query, channel)
except:
@ -1731,7 +1729,7 @@ class SpiffyTitles(callbacks.Plugin):
if title:
irc.reply(title)
else:
irc.reply(error_message + " {}".format(err))
return
t = wrap(t, ["text"])