aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_storage_internal.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua
index dd8cf61f..557a329e 100644
--- a/plugins/mod_storage_internal.lua
+++ b/plugins/mod_storage_internal.lua
@@ -12,6 +12,14 @@ function driver:open(store, typ)
return setmetatable({ store = store, type = typ }, mt);
end
+function driver:stores(username)
+ return datamanager.stores(username, host);
+end
+
+function driver:purge(user)
+ return datamanager.purge(user, host);
+end
+
local keyval = { };
driver.keyval = { __index = keyval };
@@ -23,16 +31,8 @@ function keyval:set(user, data)
return datamanager.store(user, host, self.store, data);
end
-function driver:stores(username)
- return datamanager.stores(username, host);
-end
-
function keyval:users()
return datamanager.users(host, self.store, self.type);
end
-function driver:purge(user)
- return datamanager.purge(user, host);
-end
-
module:provides("storage", driver);