aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_none.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-04 01:41:09 +0200
committerKim Alvefur <zash@zash.se>2017-04-04 01:41:09 +0200
commitfb36acd6eeb0316a068acc3ac4dd3584869500b9 (patch)
tree0c04cc8be235f6105a1fd70380b87f3d7bb8b8b4 /plugins/mod_storage_none.lua
parentc5edea490f3205da545ac477b4715d35ebd36e70 (diff)
parent46b3b5d02cb5c33782b9974ac71c7065031155de (diff)
downloadprosody-fb36acd6eeb0316a068acc3ac4dd3584869500b9.tar.gz
prosody-fb36acd6eeb0316a068acc3ac4dd3584869500b9.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_storage_none.lua')
-rw-r--r--plugins/mod_storage_none.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/mod_storage_none.lua b/plugins/mod_storage_none.lua
index fa925b76..770b2832 100644
--- a/plugins/mod_storage_none.lua
+++ b/plugins/mod_storage_none.lua
@@ -1,8 +1,10 @@
+-- luacheck: ignore 212
+
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);
@@ -23,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);