mod_csi_simple: Consider messages encrypted payload as important (fixes part of ...
[prosody.git] / plugins / mod_storage_none.lua
blobe05a0fb720543b75a143b7e3bd66c6a3a31b3aa7
1 -- luacheck: ignore 212
3 local driver = {};
4 local driver_mt = { __index = driver };
6 function driver:open(store, typ)
7 if typ and typ ~= "keyval" and typ ~= "archive" then
8 return nil, "unsupported-store";
9 end
10 return setmetatable({ store = store, type = typ }, driver_mt);
11 end
12 function driver:get(user)
13 return {};
14 end
16 function driver:set(user, data)
17 return nil, "Storage disabled";
18 end
20 function driver:stores(username)
21 return { "roster" };
22 end
24 function driver:purge(user)
25 return true;
26 end
28 function driver:append()
29 return nil, "Storage disabled";
30 end
32 function driver:find()
33 return function () end, 0;
34 end
36 function driver:delete()
37 return true;
38 end
40 module:provides("storage", driver);