From 59d210c7139358f769441db8c5c0d92db17065f1 Mon Sep 17 00:00:00 2001 From: olive Date: Sun, 27 Sep 2026 01:29:02 +0100 Subject: Pylon Message IDs Not stored. Not IRC. --- quaddle/pylon.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quaddle') diff --git a/quaddle/pylon.lua b/quaddle/pylon.lua index 20eeb3a..f3c244f 100644 --- a/quaddle/pylon.lua +++ b/quaddle/pylon.lua @@ -81,6 +81,7 @@ function Quaddle.handle_message(self, msg) channel = Thing(self, msg.channel), author = Thing(self,msg.author.id,msg.author.username), body = msg.content, + pylon_ids = { [self] = msg.id }, }) end end @@ -88,9 +89,10 @@ end function Quaddle.sending(self) for dest_channel, message in self.inbox:iter() do self.log:proto('>', dest_channel, message.author, message.body) - self:_req('channels/'..dest_channel.id..'/messages', { + local res = self:_req('channels/'..dest_channel.id..'/messages', { content = message.author:name_with_shortname()..": "..message.body, }) + message.pylon_ids[self] = res.id end end -- cgit v1.2.3