mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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
|
registry.StringWithSpaceOnRight(_('New news from '), _("""Determines what
|
||||||
prefix is prepended (if any) to the new news item announcements made in the
|
prefix is prepended (if any) to the new news item announcements made in the
|
||||||
channel.""")))
|
channel.""")))
|
||||||
|
conf.registerChannelValue(RSS, 'announcementSeparator',
|
||||||
|
registry.StringWithSpaceOnRight(_(': '), _("""Determines what
|
||||||
|
suffix is appended to the feed name in a news item.""")))
|
||||||
conf.registerChannelValue(RSS, 'announce',
|
conf.registerChannelValue(RSS, 'announce',
|
||||||
registry.SpaceSeparatedSetOfStrings([], _("""Determines which RSS feeds
|
registry.SpaceSeparatedSetOfStrings([], _("""Determines which RSS feeds
|
||||||
should be announced in the channel; valid input is a list of strings
|
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)
|
bold = self.registryValue('bold', channel)
|
||||||
sep = self.registryValue('headlineSeparator', channel)
|
sep = self.registryValue('headlineSeparator', channel)
|
||||||
prefix = self.registryValue('announcementPrefix', 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:
|
if bold:
|
||||||
pre = ircutils.bold(pre)
|
pre = ircutils.bold(pre)
|
||||||
sep = ircutils.bold(sep)
|
sep = ircutils.bold(sep)
|
||||||
|
Loading…
Reference in New Issue
Block a user