diff options
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 |
