Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 8298:dd9fa511494a
mod_pubsub: Add method to clear data from a simple_itemstore
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Oct 2017 01:28:32 +0200 |
parent | 8296:e23328adca25 |
child | 8300:7759eb130938 |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Sun Oct 08 01:27:04 2017 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sun Oct 08 01:28:32 2017 +0200 @@ -383,6 +383,9 @@ end return data; end + function get_set:clear() + return archive:delete(user, { with = node }); + end return setmetatable(get_set, archive); end _M.simple_itemstore = simple_itemstore;