aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_xep0227.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-19 12:21:49 +0200
committerKim Alvefur <zash@zash.se>2017-10-19 12:21:49 +0200
commit07eb5f7f9885fd1f3e2d4fb5947aab2344e4acef (patch)
treeb915ecc0ae41cfac6af22dc6596c048850efa976 /plugins/mod_storage_xep0227.lua
parent81dc4dad413e00640888fb6fbebba44265ac773f (diff)
downloadprosody-07eb5f7f9885fd1f3e2d4fb5947aab2344e4acef.tar.gz
prosody-07eb5f7f9885fd1f3e2d4fb5947aab2344e4acef.zip
mod_storage_xep0227: Correctly report that only key-value stores are supported
Diffstat (limited to 'plugins/mod_storage_xep0227.lua')
-rw-r--r--plugins/mod_storage_xep0227.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua
index ef227ca3..e9ba56a2 100644
--- a/plugins/mod_storage_xep0227.lua
+++ b/plugins/mod_storage_xep0227.lua
@@ -168,6 +168,7 @@ handlers.private = {
local driver = {};
function driver:open(datastore, typ)
+ if typ and typ ~= "keyval" then return nil, "unsupported-store"; end
local handler = handlers[datastore];
if not handler then return nil, "unsupported-datastore"; end
local instance = setmetatable({ host = module.host; datastore = datastore; }, { __index = handler });