fix: running @updatebt would trigger a request msg for each new ban.

added option for enable request msg, defaults to False

bot owners should run @config plugins.Bantracker.commentRequest True
This commit is contained in:
Elián Hanisch
2010-04-03 19:46:32 -03:00
parent 0cb8fc1fb7
commit b463ee3b26
2 changed files with 15 additions and 7 deletions

View File

@ -34,7 +34,9 @@ conf.registerGlobalValue(Bantracker, 'database',
conf.registerGlobalValue(Bantracker, 'bansite',
registry.String('', "Web site for the bantracker, without the 'bans.cgi' appended", private=True))
conf.registerGroup(Bantracker, 'commentRequest')
conf.registerChannelValue(Bantracker, 'commentRequest',
registry.Boolean(False,
"Enable message requests from bot"))
conf.registerChannelValue(Bantracker.commentRequest, 'type',
SpaceSeparatedListOfTypes(['removal', 'ban', 'quiet'],
"List of events for which the bot should request a comment."))