From 1d5832e97b3407d5d3673d79a9b9f24167c431e2 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 5 Jul 2022 01:27:53 -0400 Subject: [PATCH] don't re-relay bridge messages --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index fb504cd..fb72a7e 100644 --- a/main.py +++ b/main.py @@ -49,7 +49,8 @@ class bird_inst(): except Exception as e: print("hey buddy your shits fucked thought you might want to know", e) def handle_message(self, ctx): print("btw i just got this", ctx["data"]["message"]) - mesg = ctx["data"]["message"] + if ctx["name"] == self.config["deek_user"]: return + mesg = ctx["data"]["message"].replace("\n", " ") chunks = list(mesg[0+i:400+i] for i in range(0, len(mesg), 400)) for m in chunks: self.irc.sendraw(privmsg.build(self.config["irc_nick"], self.config["irc_chan"], ctx["name"]+": "+m).msg)