From f7c8ab88de2b3a90409622f71c321a3b8c2c6870 Mon Sep 17 00:00:00 2001 From: cynic Date: Tue, 2 Aug 2022 23:52:10 -0400 Subject: [PATCH] fix files --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 2b381a6..5c51dde 100644 --- a/main.py +++ b/main.py @@ -65,7 +65,7 @@ class bird_inst(): def handle_files(self, ctx): ctx["data"]["message"]["text"] = html.unescape(ctx["data"]["message"]["text"]) self.irc.sendraw(privmsg.build(self.config["irc_nick"], self.config["irc_chan"], ctx["data"]["message"]["name"]+": "+ctx["data"]["message"]["text"]).msg) - for f in ctx["data"]["files"]: + for f in ctx["data"]["message"]["files"]: self.limiter.action(self.irc.sendraw, (privmsg.build(self.config["irc_nick"], self.config["irc_chan"], f"({ctx['name']} uploaded file: {self.httpendpoint}/storage/files/{f['name']})").msg,)) def handle_exit(self, ctx): pass def handle_enter(self, ctx): pass