2006-10-19 14:39:11 +00:00
|
|
|
###
|
2007-01-23 23:42:45 +00:00
|
|
|
# Copyright (c) 2006,2007 Dennis Kaarsemaker
|
2006-10-19 14:39:11 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of version 2 of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
2006-06-26 17:57:20 +00:00
|
|
|
import supybot.conf as conf
|
|
|
|
import supybot.registry as registry
|
|
|
|
|
|
|
|
def configure(advanced):
|
|
|
|
conf.registerPlugin('Bantracker', True)
|
|
|
|
|
|
|
|
Bantracker = conf.registerPlugin('Bantracker')
|
2007-01-22 21:14:41 +00:00
|
|
|
conf.registerChannelValue(conf.supybot.plugins.Bantracker, 'enabled',
|
2006-06-26 17:57:20 +00:00
|
|
|
registry.Boolean(False, """Enable the bantracker"""))
|
2007-01-22 21:14:41 +00:00
|
|
|
conf.registerGlobalValue(conf.supybot.plugins.Bantracker, 'database',
|
2009-10-12 18:26:35 +00:00
|
|
|
registry.String('', "Filename of the bans database", private=True))
|
2008-05-05 11:34:57 +00:00
|
|
|
conf.registerGlobalValue(conf.supybot.plugins.Bantracker, 'bansite',
|
2008-05-05 15:28:59 +00:00
|
|
|
registry.String('', "Web site for the bantracker, without the 'bans.cgi' appended", private=True))
|
2010-03-15 16:12:51 +00:00
|
|
|
|
|
|
|
conf.registerChannelValue(Bantracker, 'dontRequestComment',
|
|
|
|
registry.SpaceSeparatedListOfStrings([],
|
2010-03-15 23:51:32 +00:00
|
|
|
"List of nicks for which the bot won't request to comment a ban/quiet/removal."\
|
|
|
|
" Is case insensible and wildcards * ? are accepted."))
|
|
|
|
|
|
|
|
conf.registerChannelValue(Bantracker, 'forwardRequest',
|
|
|
|
registry.SpaceSeparatedListOfStrings([],
|
|
|
|
"List of nicks for which the bot will forward the comment request to"\
|
|
|
|
" the channels/nicks defined in forwardChannel option."\
|
|
|
|
" Is case insensible and wildcards * ? are accepted."))
|
|
|
|
|
|
|
|
conf.registerChannelValue(Bantracker, 'forwardChannels',
|
|
|
|
registry.SpaceSeparatedListOfStrings([],
|
|
|
|
"List of channels/nicks to forward comment request if the op that set the ban/quiet"\
|
|
|
|
" is in the forwardRequest list."))
|
|
|
|
|