mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-12-02 08:07:26 +01: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)
|
conf.registerPlugin('RSS', True)
|
||||||
|
|
||||||
|
|
||||||
class AnnouncedFeeds(registry.SpaceSeparatedListOfStrings):
|
class FeedNames(registry.SpaceSeparatedListOfStrings):
|
||||||
List = callbacks.CanonicalNameSet
|
List = callbacks.CanonicalNameSet
|
||||||
|
|
||||||
RSS = conf.registerPlugin('RSS')
|
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
|
is prepended (if any) to the new news item announcements made in the
|
||||||
channel."""))
|
channel."""))
|
||||||
conf.registerChannelValue(RSS, 'announce',
|
conf.registerChannelValue(RSS, 'announce',
|
||||||
AnnouncedFeeds([], """Determines which RSS feeds should be announced in the
|
registry.SpaceSeparatedSetOfStrings([], """Determines which RSS feeds
|
||||||
channel; valid input is a list of strings (either registered RSS feeds or
|
should be announced in the channel; valid input is a list of strings
|
||||||
RSS feed URLs) separated by spaces."""))
|
(either registered RSS feeds or RSS feed URLs) separated by spaces."""))
|
||||||
conf.registerGlobalValue(RSS, 'waitPeriod',
|
conf.registerGlobalValue(RSS, 'waitPeriod',
|
||||||
registry.PositiveInteger(1800, """Indicates how many seconds the bot will
|
registry.PositiveInteger(1800, """Indicates how many seconds the bot will
|
||||||
wait between retrieving RSS feeds; requests made within this period will
|
wait between retrieving RSS feeds; requests made within this period will
|
||||||
return cached results."""))
|
return cached results."""))
|
||||||
conf.registerGlobalValue(RSS, 'feeds',
|
conf.registerGlobalValue(RSS, 'feeds',
|
||||||
AnnouncedFeeds([], """Determines what feeds should be accessible as
|
FeedNames([], """Determines what feeds should be accessible as
|
||||||
commands."""))
|
commands."""))
|
||||||
conf.registerChannelValue(RSS, 'showLinks',
|
conf.registerChannelValue(RSS, 'showLinks',
|
||||||
registry.Boolean(False, """Determines whether the bot will list the link
|
registry.Boolean(False, """Determines whether the bot will list the link
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user