summaryrefslogtreecommitdiff
path: root/store.lua
diff options
context:
space:
mode:
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