Quick patch for (more) unicode support

This commit is contained in:
neersighted 2012-03-02 11:40:51 -08:00
parent 95671d5241
commit a10370fdcd

View file

@ -17,6 +17,7 @@ def decode(txt):
def censor(text):
text = text.decode('ascii', 'replace')
replacement = '[censored]'
if 'censored_strings' in bot.config:
words = map(re.escape, bot.config['censored_strings'])