# HG changeset patch # User Kim Alvefur # Date 1508408509 -7200 # Node ID 3ca11d40838299a1e06404d12935cc849df52224 # Parent 2342eccf4a881c182c79c4992b7fd9670ded8d74 mod_storage_xep0227: Correctly report that only key-value stores are supported diff -r 2342eccf4a88 -r 3ca11d408382 plugins/mod_storage_xep0227.lua --- a/plugins/mod_storage_xep0227.lua Wed Oct 25 01:32:30 2017 +0200 +++ b/plugins/mod_storage_xep0227.lua Thu Oct 19 12:21:49 2017 +0200 @@ -168,6 +168,7 @@ 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 });