diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-04 01:31:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-04 01:31:51 +0200 |
commit | 46b3b5d02cb5c33782b9974ac71c7065031155de (patch) | |
tree | 7cb1f7c91e5c3fdc881fda13d9b5e86fed4b356b | |
parent | 0817bc4e8fe19c844b08369dab03f84b1d0e5f0a (diff) | |
download | prosody-46b3b5d02cb5c33782b9974ac71c7065031155de.tar.gz prosody-46b3b5d02cb5c33782b9974ac71c7065031155de.zip |
mod_storage_none: Add allways empty archive storage
-rw-r--r-- | plugins/mod_storage_none.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/mod_storage_none.lua b/plugins/mod_storage_none.lua index f1692cb8..770b2832 100644 --- a/plugins/mod_storage_none.lua +++ b/plugins/mod_storage_none.lua @@ -4,7 +4,7 @@ local driver = {}; local driver_mt = { __index = driver }; function driver:open(store, typ) - if typ and typ ~= "keyval" then + if typ and typ ~= "keyval" and typ ~= "archive" then return nil, "unsupported-store"; end return setmetatable({ store = store, type = typ }, driver_mt); @@ -25,4 +25,12 @@ function driver:purge(user) return true; end +function driver:append() + return nil, "Storage disabled"; +end + +function driver:find() + return function () end, 0; +end + module:provides("storage", driver); |