projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 0.9->trunk
[prosody.git]
/
plugins
/
mod_storage_internal.lua
diff --git
a/plugins/mod_storage_internal.lua
b/plugins/mod_storage_internal.lua
index 821d1e1a32a6ca6d0cbf59cb9cfce75abe862f72..039202dd8466983fb502d149df9bf0947beff39b 100644
(file)
--- a/
plugins/mod_storage_internal.lua
+++ b/
plugins/mod_storage_internal.lua
@@
-2,7
+2,7
@@
local datamanager = require "core.storagemanager".olddm;
local host = module.host;
local host = module.host;
-local driver = {
name = "internal"
};
+local driver = {};
local driver_mt = { __index = driver };
function driver:open(store)
local driver_mt = { __index = driver };
function driver:open(store)
@@
-16,4
+16,12
@@
function driver:set(user, data)
return datamanager.store(user, host, self.store, data);
end
return datamanager.store(user, host, self.store, data);
end
-module:add_item("data-driver", driver);
+function driver:stores(username)
+ return datamanager.stores(username, host);
+end
+
+function driver:purge(user)
+ return datamanager.purge(user, host);
+end
+
+module:provides("storage", driver);