Quick patch for (more) unicode support
This commit is contained in:
parent
95671d5241
commit
a10370fdcd
|
@ -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'])
|
||||
|
|
Reference in a new issue