Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 9191:5192adc5c47f
MUC: Pass missing argument to log message
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Aug 2018 00:31:24 +0200 |
parent | 9093:04a284c5b88b |
child | 9192:1403c64ca140 |
comparison
equal
deleted
inserted
replaced
9190:b88f537163da | 9191:5192adc5c47f |
---|---|
142 local room_hit = module:measure("room_hit", "rate"); | 142 local room_hit = module:measure("room_hit", "rate"); |
143 local room_miss = module:measure("room_miss", "rate") | 143 local room_miss = module:measure("room_miss", "rate") |
144 local room_eviction = module:measure("room_eviction", "rate"); | 144 local room_eviction = module:measure("room_eviction", "rate"); |
145 local rooms = cache.new(max_rooms or max_live_rooms, function (jid, room) | 145 local rooms = cache.new(max_rooms or max_live_rooms, function (jid, room) |
146 if max_rooms then | 146 if max_rooms then |
147 module:log("info", "Room limit of %d reached, no new rooms allowed"); | 147 module:log("info", "Room limit of %d reached, no new rooms allowed", max_rooms); |
148 return false; | 148 return false; |
149 end | 149 end |
150 module:log("debug", "Evicting room %s", jid); | 150 module:log("debug", "Evicting room %s", jid); |
151 room_eviction(); | 151 room_eviction(); |
152 room_items_cache[room.jid] = room:get_public() and room:get_name() or nil; | 152 room_items_cache[room.jid] = room:get_public() and room:get_name() or nil; |