Diff

plugins/mod_storage_memory.lua @ 9610:ca000dcd4c06

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 07 Nov 2018 21:53:40 +0100
parent 9609:1dfcea523200
child 9783:4c91afc43639
child 9832:96d9c121547b
line wrap: on
line diff
--- a/plugins/mod_storage_memory.lua	Thu Nov 01 23:58:41 2018 +0100
+++ b/plugins/mod_storage_memory.lua	Wed Nov 07 21:53:40 2018 +0100
@@ -197,6 +197,12 @@
 	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;