diff --git a/core/irc.py b/core/irc.py index 6dbbb0a..340b2ce 100644 --- a/core/irc.py +++ b/core/irc.py @@ -17,6 +17,7 @@ def decode(txt): def censor(text): + text = text.replace('\n', '').replace('\r', '') replacement = '[censored]' if 'censored_strings' in bot.config: words = map(re.escape, bot.config['censored_strings'])