Software /
code /
prosody
Comparison
plugins/mod_storage_sql2.lua @ 6726:e6e80ec50030
mod_storage_sql2: Add a 'caps' table for indicating support for optional features
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 May 2015 18:24:53 +0200 |
parent | 6725:41725f3df3cc |
child | 6727:eb9c842b80fa |
child | 6728:db28b8639737 |
comparison
equal
deleted
inserted
replaced
6725:41725f3df3cc | 6726:e6e80ec50030 |
---|---|
213 if not ok then return ok, result end | 213 if not ok then return ok, result end |
214 return iterator(result); | 214 return iterator(result); |
215 end | 215 end |
216 | 216 |
217 local archive_store = {} | 217 local archive_store = {} |
218 archive_store.caps = { | |
219 total = true; | |
220 }; | |
218 archive_store.__index = archive_store | 221 archive_store.__index = archive_store |
219 function archive_store:append(username, key, value, when, with) | 222 function archive_store:append(username, key, value, when, with) |
220 if type(when) ~= "number" then | 223 if type(when) ~= "number" then |
221 value, when, with = when, with, value; | 224 value, when, with = when, with, value; |
222 end | 225 end |