mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-29 06:51:12 -05:00
Revert "SpiffyTitles: add 'prefixNick' config."
This reverts commit 496c8524fd8e2ddfe4f220e9663b879046c094af.
This commit is contained in:
parent
496c8524fd
commit
71e70c2d66
@ -201,19 +201,6 @@ conf.registerChannelValue(
|
|||||||
registry.Regexp("", _("""Titles matching this pattern will be ignored.""")),
|
registry.Regexp("", _("""Titles matching this pattern will be ignored.""")),
|
||||||
)
|
)
|
||||||
|
|
||||||
conf.registerChannelValue(
|
|
||||||
SpiffyTitles,
|
|
||||||
"prefixNick",
|
|
||||||
registry.Boolean(
|
|
||||||
False,
|
|
||||||
_(
|
|
||||||
"""
|
|
||||||
Determines whether SpiffyTitles will prefix replies with the user's nick.
|
|
||||||
"""
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# default configs
|
# default configs
|
||||||
conf.registerGroup(SpiffyTitles, "default")
|
conf.registerGroup(SpiffyTitles, "default")
|
||||||
|
@ -215,12 +215,11 @@ class SpiffyTitles(callbacks.Plugin):
|
|||||||
return
|
return
|
||||||
title = self.get_title_by_url(url, channel, msg.nick)
|
title = self.get_title_by_url(url, channel, msg.nick)
|
||||||
if title:
|
if title:
|
||||||
prefixed = self.registryValue("prefixNick", channel=channel)
|
|
||||||
ignore_match = self.title_matches_ignore_pattern(title, channel)
|
ignore_match = self.title_matches_ignore_pattern(title, channel)
|
||||||
if ignore_match:
|
if ignore_match:
|
||||||
return
|
return
|
||||||
elif not is_ignored:
|
elif not is_ignored:
|
||||||
irc.reply(title, prefixNick=prefix)
|
irc.reply(title, prefixNick=False)
|
||||||
else:
|
else:
|
||||||
if self.registryValue("default.enabled", channel):
|
if self.registryValue("default.enabled", channel):
|
||||||
log.debug("SpiffyTitles: could not get a title for %s" % (url))
|
log.debug("SpiffyTitles: could not get a title for %s" % (url))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user