# HG changeset patch # User Kim Alvefur # Date 1521233974 -3600 # Node ID 75c7e887c4b94d20945c212a1c44d7e26702b718 # Parent a804f2e75f103e9cd65a4e272766d6f9b9338e45 MUC: Only fetch stored room state if room config is loaded without error diff -r a804f2e75f10 -r 75c7e887c4b9 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Wed Mar 07 17:38:01 2018 +0100 +++ b/plugins/muc/mod_muc.lua Fri Mar 16 21:59:34 2018 +0100 @@ -156,9 +156,9 @@ local function restore_room(jid) local node = jid_split(jid); local data, err = room_configs:get(node); - local state = room_state:get(node); if data then module:log("debug", "Restoring room %s from storage", jid); + local state = room_state:get(node); local room = muclib.restore_room(data, state); return track_room(room); elseif err then