From 1261ec1fd40058fd33c04508e32174f9bbe55c3d Mon Sep 17 00:00:00 2001 From: cynic Date: Sun, 29 Oct 2023 16:28:27 -0400 Subject: [PATCH] not this: --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 350d601..750945d 100644 --- a/main.py +++ b/main.py @@ -61,7 +61,7 @@ class bird_inst(): mesg = ctx["data"]["text"].replace("\n", " ") chunks = list(mesg[0+i:400+i] for i in range(0, len(mesg), 400)) for m in chunks: - self.limiter.action(True, self.irc.sendraw, (privmsg.build(self.config["irc_nick"], self.config["irc_chan"], ctx["data"]["name"]+": "+m).msg,)) + self.limiter.action(True, self.irc.sendraw, (privmsg.build(self.config["irc_nick"], self.config["irc_chan"], "<"+ctx["data"]["name"]+"> "+m).msg,)) def handle_messageStart(self, ctx): pass def handle_messageChange(self, ctx): pass def handle_messageEnd(self, ctx): self.handle_message(ctx) @@ -69,7 +69,7 @@ class bird_inst(): def handle_loadUsers(self, ctx): pass def handle_files(self, ctx): ctx["data"]["text"] = html.unescape(ctx["data"]["text"]) - self.irc.sendraw(privmsg.build(self.config["irc_nick"], self.config["irc_chan"], ctx["data"]["name"]+": "+ctx["data"]["text"]).msg) + self.irc.sendraw(privmsg.build(self.config["irc_nick"], self.config["irc_chan"], "<"+ctx["data"]["name"]+"> "+ctx["data"]["text"]).msg) for f in ctx["data"]["files"]: self.limiter.action(True, self.irc.sendraw, (privmsg.build(self.config["irc_nick"], self.config["irc_chan"], f"({ctx['data']['name']} uploaded file: {self.httpendpoint}/storage/files/{f['name']} )").msg,)) def handle_exit(self, ctx): pass