aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_none.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-05 10:05:18 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-05 10:05:18 +0100
commitfc2ce67b3159f5d5b35b8109f5c2c11fc8b37c99 (patch)
tree60c4be5a40bd2c13dcfb8435083d1b23619523a4 /plugins/mod_storage_none.lua
parent1213909d149d2ae2d697d6694ee1a30ef41c47f4 (diff)
parentc84e9926d2d60a8587c1e57daa37baad489585b5 (diff)
downloadprosody-fc2ce67b3159f5d5b35b8109f5c2c11fc8b37c99.tar.gz
prosody-fc2ce67b3159f5d5b35b8109f5c2c11fc8b37c99.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_storage_none.lua')
-rw-r--r--plugins/mod_storage_none.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/mod_storage_none.lua b/plugins/mod_storage_none.lua
new file mode 100644
index 00000000..8f2d2f56
--- /dev/null
+++ b/plugins/mod_storage_none.lua
@@ -0,0 +1,23 @@
+local driver = {};
+local driver_mt = { __index = driver };
+
+function driver:open(store)
+ return setmetatable({ store = store }, driver_mt);
+end
+function driver:get(user)
+ return {};
+end
+
+function driver:set(user, data)
+ return nil, "Storage disabled";
+end
+
+function driver:stores(username)
+ return { "roster" };
+end
+
+function driver:purge(user)
+ return true;
+end
+
+module:provides("storage", driver);