projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge 0.10->trunk
[prosody.git]
/
plugins
/
mod_storage_internal.lua
diff --git
a/plugins/mod_storage_internal.lua
b/plugins/mod_storage_internal.lua
index 972ecbee33d1b1a71c7f5a8b582ff6bb4c99c6ec..ade4f0a656ec7b12ee15076c4823fe48be382b2c 100644
(file)
--- a/
plugins/mod_storage_internal.lua
+++ b/
plugins/mod_storage_internal.lua
@@
-6,6
+6,9
@@
local driver = {};
local driver_mt = { __index = driver };
function driver:open(store, typ)
+ if typ and typ ~= "keyval" then
+ return nil, "unsupported-store";
+ end
return setmetatable({ store = store, type = typ }, driver_mt);
end
function driver:get(user)