Comparison

mod_mam/mod_mam.lua @ 2025:ae98bb884110

mod_mam: Fix Top Level Error from string[table] = nil instead of table[string] = nil
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jan 2016 18:04:24 +0100
parent 2024:6f4dcc723a60
child 2030:66156e4d5274
comparison
equal deleted inserted replaced
2024:6f4dcc723a60 2025:ae98bb884110
304 module:log("debug", "Removing old messages for user %q", user); 304 module:log("debug", "Removing old messages for user %q", user);
305 local ok, err = archive:delete(user, { ["end"] = os.time() - cleanup_after; }) 305 local ok, err = archive:delete(user, { ["end"] = os.time() - cleanup_after; })
306 if not ok then 306 if not ok then
307 module:log("warn", "Could not expire archives for user %s: %s", user, err); 307 module:log("warn", "Could not expire archives for user %s: %s", user, err);
308 end 308 end
309 user[cleanup] = nil; 309 cleanup[user] = nil;
310 end 310 end
311 return cleanup_interval; 311 return cleanup_interval;
312 end); 312 end);
313 end 313 end
314 314