X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_storage_internal.lua;h=ade4f0a656ec7b12ee15076c4823fe48be382b2c;hb=c9492b4832d02487e200126d7caea403bc5e06fd;hp=972ecbee33d1b1a71c7f5a8b582ff6bb4c99c6ec;hpb=bca9d41c435fcce947eb9ee166efae96becbac5f;p=prosody.git diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua index 972ecbee..ade4f0a6 100644 --- a/plugins/mod_storage_internal.lua +++ b/plugins/mod_storage_internal.lua @@ -6,6 +6,9 @@ local driver = {}; local driver_mt = { __index = driver }; function driver:open(store, typ) + if typ and typ ~= "keyval" then + return nil, "unsupported-store"; + end return setmetatable({ store = store, type = typ }, driver_mt); end function driver:get(user)