mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
RSS: add supybot.plugins.RSS.announcementSeparator.
This commit is contained in:
parent
f4bf62ab6b
commit
61eb0fd3f8
@ -60,6 +60,9 @@ conf.registerChannelValue(RSS, 'announcementPrefix',
|
||||
registry.StringWithSpaceOnRight(_('New news from '), _("""Determines what
|
||||
prefix is prepended (if any) to the new news item announcements made in the
|
||||
channel.""")))
|
||||
conf.registerChannelValue(RSS, 'announcementSeparator',
|
||||
registry.StringWithSpaceOnRight(_(': '), _("""Determines what
|
||||
suffix is appended to the feed name in a news item.""")))
|
||||
conf.registerChannelValue(RSS, 'announce',
|
||||
registry.SpaceSeparatedSetOfStrings([], _("""Determines which RSS feeds
|
||||
should be announced in the channel; valid input is a list of strings
|
||||
|
@ -214,7 +214,8 @@ class RSS(callbacks.Plugin):
|
||||
bold = self.registryValue('bold', channel)
|
||||
sep = self.registryValue('headlineSeparator', channel)
|
||||
prefix = self.registryValue('announcementPrefix', channel)
|
||||
pre = format('%s%s: ', prefix, name)
|
||||
suffix = self.registryValue('announcementSeparator', channel)
|
||||
pre = format('%s%s%s', prefix, name, suffix)
|
||||
if bold:
|
||||
pre = ircutils.bold(pre)
|
||||
sep = ircutils.bold(sep)
|
||||
|
Loading…
Reference in New Issue
Block a user