diff options
author | Kim Alvefur <zash@zash.se> | 2018-11-07 21:53:40 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-11-07 21:53:40 +0100 |
commit | ac7682bc92fdd4b7f6ff3a323659dabb649c1afd (patch) | |
tree | 4a6af8ab32ff0fabb03a861461739530aec03738 /plugins/mod_storage_memory.lua | |
parent | 2a701f2d8b5b024bccbe10ebfcb0e4f1f3ffddf2 (diff) | |
parent | f014ba0feb218c5131e68cd14cafb1feb3e8d7ad (diff) | |
download | prosody-ac7682bc92fdd4b7f6ff3a323659dabb649c1afd.tar.gz prosody-ac7682bc92fdd4b7f6ff3a323659dabb649c1afd.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_storage_memory.lua')
-rw-r--r-- | plugins/mod_storage_memory.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_storage_memory.lua b/plugins/mod_storage_memory.lua index 9659f9e7..ed04a5fb 100644 --- a/plugins/mod_storage_memory.lua +++ b/plugins/mod_storage_memory.lua @@ -197,6 +197,12 @@ function driver:open(store, typ) -- luacheck: ignore 212/self return nil, "unsupported-store"; end +function driver:purge(user) -- luacheck: ignore 212/self + for _, store in pairs(memory) do + store[user] = nil; + end +end + if auto_purge_enabled then module:hook("resource-unbind", function (event) local user_bare_jid = event.session.username.."@"..event.session.host; |