Allow the empty string for supybot.brackets, so users can turn off command nesting.

This commit is contained in:
Jeremy Fincher 2004-04-22 04:28:54 +00:00
parent 7bee8831a8
commit e2de2784bc

View File

@ -220,7 +220,7 @@ nested commands. If this option is enabled users can nest commands using a
bracket syntax, for example: 'bot: bar [foo]'.""")) bracket syntax, for example: 'bot: bar [foo]'."""))
class ValidBrackets(registry.OnlySomeStrings): class ValidBrackets(registry.OnlySomeStrings):
validStrings = ('[]', '<>', '{}', '()') validStrings = ('', '[]', '<>', '{}', '()')
supybot.register('brackets', ValidBrackets('[]', """Supybot allows you to supybot.register('brackets', ValidBrackets('[]', """Supybot allows you to
specify what brackets are used for your nested commands. Valid sets of specify what brackets are used for your nested commands. Valid sets of