diff options
-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 }); |