diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-04-05 10:05:18 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-04-05 10:05:18 +0100 |
commit | 6f71d38f1f92ef51fd9d82cbfb8c33a518010651 (patch) | |
tree | 60c4be5a40bd2c13dcfb8435083d1b23619523a4 /plugins/mod_storage_none.lua | |
parent | a5ccb8a860924f48570242e468267885137e3e9a (diff) | |
parent | a115da90578ef0e91e7fb911421142552a4e8e4a (diff) | |
download | prosody-6f71d38f1f92ef51fd9d82cbfb8c33a518010651.tar.gz prosody-6f71d38f1f92ef51fd9d82cbfb8c33a518010651.zip |
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_storage_none.lua')
-rw-r--r-- | plugins/mod_storage_none.lua | 23 |
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); |