From 6b9430aabb8ebe69db14e354b506702d151d1c44 Mon Sep 17 00:00:00 2001 From: dece Date: Thu, 2 Dec 2021 11:35:02 +0100 Subject: [PATCH] bot: replace \r and \n before sending message --- edmond/bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/edmond/bot.py b/edmond/bot.py index 7306920..52d3653 100644 --- a/edmond/bot.py +++ b/edmond/bot.py @@ -149,6 +149,7 @@ class Bot(irc.client.SimpleIRCClient, Logger): def say(self, target, message): """Send message to target after a slight delay.""" + message = message.replace("\n", " ").replace("\r", " ") time.sleep(self.config["speak_delay"]) self.log_d(f"Sending to {target}: {message}") try: