diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-19 12:21:49 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-19 12:21:49 +0200 |
commit | f1d983a6db5d56971bea81f79df3dbc9de080829 (patch) | |
tree | b915ecc0ae41cfac6af22dc6596c048850efa976 | |
parent | 732bb3c8408748b602f28cd2c27bee6fce67d37f (diff) | |
download | prosody-f1d983a6db5d56971bea81f79df3dbc9de080829.tar.gz prosody-f1d983a6db5d56971bea81f79df3dbc9de080829.zip |
mod_storage_xep0227: Correctly report that only key-value stores are supported
-rw-r--r-- | plugins/mod_storage_xep0227.lua | 1 |
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 }); |