diff options
| author | rebecca <ubq323@ubq323.website> | 2026-09-24 17:20:42 +0100 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-09-24 18:55:05 +0100 |
| commit | 71cee0014368f5d83fe94989526a4ffb2824f50c (patch) | |
| tree | cd87a5c7d859d98f48866ff769ef89d60a28d5d5 /store.lua | |
| parent | dff5363f96029aba6d0f222d3e31ab3888d7111f (diff) | |
change fields on Message to include author
Diffstat (limited to 'store.lua')
| -rw-r--r-- | store.lua | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |
