From 0c99a65afa567619981f47436ca9216a04d1388d Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 4 Aug 2012 22:47:16 +0200 Subject: [PATCH] src/conf.py: Use classic comparison instead of str.translate. --- src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.py b/src/conf.py index 208864adc..de30e52a0 100644 --- a/src/conf.py +++ b/src/conf.py @@ -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)