summaryrefslogtreecommitdiff
path: root/store.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-24 17:20:42 +0100
committerrebecca <ubq323@ubq323.website>2026-09-24 18:55:05 +0100
commit71cee0014368f5d83fe94989526a4ffb2824f50c (patch)
treecd87a5c7d859d98f48866ff769ef89d60a28d5d5 /store.lua
parentdff5363f96029aba6d0f222d3e31ab3888d7111f (diff)
change fields on Message to include author
Diffstat (limited to 'store.lua')
-rw-r--r--store.lua7
1 files changed, 3 insertions, 4 deletions
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