From 71cee0014368f5d83fe94989526a4ffb2824f50c Mon Sep 17 00:00:00 2001 From: rebecca Date: Thu, 24 Sep 2026 17:20:42 +0100 Subject: change fields on Message to include author --- store.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'store.lua') diff --git a/store.lua b/store.lua index 8e0b31e..b978b17 100644 --- a/store.lua +++ b/store.lua @@ -38,10 +38,9 @@ function Store.storing(self) insert into messages (p_type, p_name,channel,author,ts,body) values (?, ?, ?, ?, ?, ?); ]], - msg.source_channel.pylon.type, - msg.source_channel.pylon.name, - msg.source_channel.id,--hello. - msg.sender,os.time(),msg.body) + msg.pylon.type,msg.pylon.name, + msg.channel.id, msg.author.id, + os.time(),msg.body) self.log("stored",msg.body) assert(conn:commit()) end end function Store.store(self, msg) self.q:enqueue(msg) end -- cgit v1.2.3