mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 13:44:17 +01:00
src/conf.py: Use classic comparison instead of str.translate.
This commit is contained in:
parent
0b7e4e5ce5
commit
0c99a65afa
@ -456,7 +456,7 @@ registerChannelValue(supybot.reply, 'showSimpleSyntax',
|
||||
class ValidPrefixChars(registry.String):
|
||||
"""Value must contain only ~!@#$%^&*()_-+=[{}]\\|'\";:,<.>/?"""
|
||||
def setValue(self, v):
|
||||
if v.translate(utils.str.chars, '`~!@#$%^&*()_-+=[{}]\\|\'";:,<.>/?'):
|
||||
if any([x not in '`~!@#$%^&*()_-+=[{}]\\|\'";:,<.>/?' for x in v]):
|
||||
self.error()
|
||||
registry.String.setValue(self, v)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user