From b6887f5ede65bf2e525c3b2a921b321656201252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eli=C3=A1n=20Hanisch?= Date: Sat, 3 Apr 2010 23:53:05 -0300 Subject: [PATCH] config help review --- Bantracker/config.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Bantracker/config.py b/Bantracker/config.py index b77e7b2..afc665f 100644 --- a/Bantracker/config.py +++ b/Bantracker/config.py @@ -15,10 +15,12 @@ import supybot.conf as conf import supybot.registry as registry + class ValidTypes(registry.OnlySomeStrings): """Invalid type, valid types are: 'removal', 'ban' or 'quiet'.""" validStrings = ('removal', 'ban', 'quiet') + class SpaceSeparatedListOfTypes(registry.SpaceSeparatedListOf): Value = ValidTypes @@ -42,7 +44,7 @@ conf.registerChannelValue(Bantracker.request, 'type', "List of events for which the bot should request a comment.")) conf.registerChannelValue(Bantracker.request, 'ignore', registry.SpaceSeparatedListOfStrings(['FloodBot?', 'FloodBotK?', 'ChanServ'], - "List of nicks for which the bot won't request to comment a ban/quiet/removal."\ + "List of nicks for which the bot won't request to comment or review."\ " Is case insensible and wildcards * ? are accepted.")) conf.registerChannelValue(Bantracker.request, 'forward', registry.SpaceSeparatedListOfStrings([], @@ -51,10 +53,10 @@ conf.registerChannelValue(Bantracker.request, 'forward', " Is case insensible and wildcards * ? are accepted.")) conf.registerChannelValue(Bantracker.request.forward, 'channels', registry.SpaceSeparatedListOfStrings([], - "List of channels/nicks to forward the request if the op that set the ban/quiet"\ - " is in the forward list.")) + "List of channels/nicks to forward the request if the op is in the forward list.")) conf.registerGlobalValue(Bantracker.request, 'review', registry.Float(7, - "Days after which the bot will request for review a ban. Can be an integer or decimal value.")) + "Days after which the bot will request for review a ban. Can be an integer or decimal" + " value. Zero disables reviews."))