mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-08-13 08:27:22 +02:00
Using canonicalName (via AnnouncedFeeds) for plugins.RSS.announce causes unnecessary case changes for URLs. Simply use a String.
This commit is contained in:
parent
35debf5303
commit
8fe69c1895
@ -40,7 +40,7 @@ def configure(advanced):
|
||||
conf.registerPlugin('RSS', True)
|
||||
|
||||
|
||||
class AnnouncedFeeds(registry.SpaceSeparatedListOfStrings):
|
||||
class FeedNames(registry.SpaceSeparatedListOfStrings):
|
||||
List = callbacks.CanonicalNameSet
|
||||
|
||||
RSS = conf.registerPlugin('RSS')
|
||||
@ -55,15 +55,15 @@ conf.registerChannelValue(RSS, 'announcementPrefix',
|
||||
is prepended (if any) to the new news item announcements made in the
|
||||
channel."""))
|
||||
conf.registerChannelValue(RSS, 'announce',
|
||||
AnnouncedFeeds([], """Determines which RSS feeds should be announced in the
|
||||
channel; valid input is a list of strings (either registered RSS feeds or
|
||||
RSS feed URLs) separated by spaces."""))
|
||||
registry.SpaceSeparatedSetOfStrings([], """Determines which RSS feeds
|
||||
should be announced in the channel; valid input is a list of strings
|
||||
(either registered RSS feeds or RSS feed URLs) separated by spaces."""))
|
||||
conf.registerGlobalValue(RSS, 'waitPeriod',
|
||||
registry.PositiveInteger(1800, """Indicates how many seconds the bot will
|
||||
wait between retrieving RSS feeds; requests made within this period will
|
||||
return cached results."""))
|
||||
conf.registerGlobalValue(RSS, 'feeds',
|
||||
AnnouncedFeeds([], """Determines what feeds should be accessible as
|
||||
FeedNames([], """Determines what feeds should be accessible as
|
||||
commands."""))
|
||||
conf.registerChannelValue(RSS, 'showLinks',
|
||||
registry.Boolean(False, """Determines whether the bot will list the link
|
||||
|
Loading…
x
Reference in New Issue
Block a user