projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
391b07a
)
Merge with Maranda
author
Matthew Wild
<mwild1@gmail.com>
Fri, 5 Apr 2013 09:04:53 +0000
(10:04 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 5 Apr 2013 09:04:53 +0000
(10:04 +0100)
plugins/mod_storage_none.lua
[new file with mode: 0644]
patch
|
blob
diff --git a/plugins/mod_storage_none.lua
b/plugins/mod_storage_none.lua
new file mode 100644
(file)
index 0000000..
8f2d2f5
--- /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);