Comparison

plugins/muc/mod_muc.lua @ 8385:43d50a957463

MUC: Tweak debug log message
author Kim Alvefur <zash@zash.se>
date Thu, 09 Nov 2017 17:27:12 +0100
parent 8180:67a9ff352271
child 8386:9d5eb384daa8
comparison
equal deleted inserted replaced
8384:4a5c6f6214ee 8385:43d50a957463
113 return room_configs:set(node, nil); 113 return room_configs:set(node, nil);
114 end 114 end
115 end 115 end
116 116
117 local rooms = cache.new(module:get_option_number("muc_room_cache_size", 100), function (jid, room) 117 local rooms = cache.new(module:get_option_number("muc_room_cache_size", 100), function (jid, room)
118 module:log("debug", "%s evicted", jid); 118 module:log("debug", "Evicting room %s", jid);
119 room_save(room, nil, true); -- Force to disk 119 room_save(room, nil, true); -- Force to disk
120 end); 120 end);
121 121
122 -- Automatically destroy empty non-persistent rooms 122 -- Automatically destroy empty non-persistent rooms
123 module:hook("muc-occupant-left",function(event) 123 module:hook("muc-occupant-left",function(event)