mod_mam: Fix Top Level Error from string[table] = nil instead of table[string] = nil
authorKim Alvefur <zash@zash.se>
Tue, 19 Jan 2016 18:04:24 +0100
changeset 2029 ae98bb884110
parent 2028 6f4dcc723a60
child 2030 8397008b4a26
mod_mam: Fix Top Level Error from string[table] = nil instead of table[string] = nil
mod_mam/mod_mam.lua
--- a/mod_mam/mod_mam.lua	Tue Jan 19 17:59:05 2016 +0100
+++ b/mod_mam/mod_mam.lua	Tue Jan 19 18:04:24 2016 +0100
@@ -306,7 +306,7 @@
 			if not ok then
 				module:log("warn", "Could not expire archives for user %s: %s", user, err);
 			end
-			user[cleanup] = nil;
+			cleanup[user] = nil;
 		end
 		return cleanup_interval;
 	end);