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 ## 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. will be sent instead of the link title.
## Available Options ## Available Options

View File

@ -158,20 +158,6 @@ conf.registerGlobalValue(
registry.Integer(600, _("""Link cache lifetime in seconds""")), 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( conf.registerChannelValue(
SpiffyTitles, SpiffyTitles,
"ignoredMessagePattern", "ignoredMessagePattern",

View File

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