From 07eb5f7f9885fd1f3e2d4fb5947aab2344e4acef Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 19 Oct 2017 12:21:49 +0200 Subject: mod_storage_xep0227: Correctly report that only key-value stores are supported --- plugins/mod_storage_xep0227.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_storage_xep0227.lua') 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 }); -- cgit v1.2.3