bot: replace \r and \n before sending message
This commit is contained in:
parent
56656dca98
commit
6b9430aabb
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue