Changeset

1554:8059b7cdaf17

mod_http_muc_log: Make MUC local code identical to mod_mam_muc
author Kim Alvefur <zash@zash.se>
date Sun, 09 Nov 2014 08:37:43 +0100
parents 1553:1398d2bbcd42
children 1555:2e51f70cd7ea
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Sun Nov 09 08:34:52 2014 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Sun Nov 09 08:37:43 2014 +0100
@@ -12,7 +12,8 @@
 local mod_muc = module:depends"muc";
 local rooms = rawget(mod_muc, "rooms");
 local each_room = rawget(mod_muc, "each_room") or function() return it.values(rooms); end;
-if not rooms then
+local new_muc = not rooms;
+if new_muc then
 	rooms = module:shared"muc/rooms";
 end
 local get_room_from_jid = rawget(mod_muc, "get_room_from_jid") or