Mercurial > prosody-hg
view plugins/mod_storage_none.lua @ 6094:db2faeb151b6
plugins/muc/muc.lib: Factor `handle_to_occupant` out into many functions
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Thu, 20 Feb 2014 16:50:18 -0500 |
| parents | b00812c6daf8 |
| children | 7cf6d3a2c855 |
line wrap: on
line source
local driver = {}; local driver_mt = { __index = driver }; function driver:open(store) return setmetatable({ store = store }, driver_mt); end function driver:get(user) return {}; end function driver:set(user, data) return nil, "Storage disabled"; end function driver:stores(username) return { "roster" }; end function driver:purge(user) return true; end module:provides("storage", driver);
