Comparison

plugins/mod_mam/mod_mam.lua @ 9752:5cc2765c3ce4

mod_mam: Fix word order in log message
author Kim Alvefur <zash@zash.se>
date Fri, 04 Jan 2019 10:14:55 +0100
parent 9751:39ee70fbb009
child 9757:03ed7f10d8da
comparison
equal deleted inserted replaced
9751:39ee70fbb009 9752:5cc2765c3ce4
373 if ok then 373 if ok then
374 num_users = num_users + 1; 374 num_users = num_users + 1;
375 sum = sum + tonumber(ok) or 0; 375 sum = sum + tonumber(ok) or 0;
376 end 376 end
377 end 377 end
378 module:log("info", "Deleted expired %d messages for %d users", sum, num_users); 378 module:log("info", "Deleted %d expired messages for %d users", sum, num_users);
379 end); 379 end);
380 380
381 cleanup_task = module:add_timer(1, function () 381 cleanup_task = module:add_timer(1, function ()
382 cleanup_runner:run(true); 382 cleanup_runner:run(true);
383 return cleanup_interval; 383 return cleanup_interval;