Add ° as a prefix character.

This commit is contained in:
Valentin Lorentz 2012-08-02 13:15:50 +00:00
parent 59b9ba2cf8
commit 0af7d791cc

View File

@ -454,9 +454,9 @@ registerChannelValue(supybot.reply, 'showSimpleSyntax',
help) rather than the full help.""")))
class ValidPrefixChars(registry.String):
"""Value must contain only ~!@#$%^&*()_-+=[{}]\\|'\";:,<.>/?"""
"""Value must contain only ~!@#$%^&*()_-+=[{}]\\|'\";:,<.>/?°"""
def setValue(self, v):
if v.translate(utils.str.chars, '`~!@#$%^&*()_-+=[{}]\\|\'";:,<.>/?'):
if v.translate(utils.str.chars, '`~!@#$%^&*()_-+=[{}]\\|\'";:,<.>/?°'):
self.error()
registry.String.setValue(self, v)