Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8297:ac5c90230c2c | 8298:dd9fa511494a |
---|---|
381 module:log("error", "Unable to set item: %s", err); | 381 module:log("error", "Unable to set item: %s", err); |
382 return nil, err; | 382 return nil, err; |
383 end | 383 end |
384 return data; | 384 return data; |
385 end | 385 end |
386 function get_set:clear() | |
387 return archive:delete(user, { with = node }); | |
388 end | |
386 return setmetatable(get_set, archive); | 389 return setmetatable(get_set, archive); |
387 end | 390 end |
388 _M.simple_itemstore = simple_itemstore; | 391 _M.simple_itemstore = simple_itemstore; |
389 | 392 |
390 return _M; | 393 return _M; |