From 8fe69c1895286a60e34c3bcae52a41b6d8171cba Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 17 Oct 2007 03:25:38 +0000 Subject: [PATCH] Using canonicalName (via AnnouncedFeeds) for plugins.RSS.announce causes unnecessary case changes for URLs. Simply use a String. --- plugins/RSS/config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/RSS/config.py b/plugins/RSS/config.py index e0fa198ea..f36e9dc4b 100644 --- a/plugins/RSS/config.py +++ b/plugins/RSS/config.py @@ -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