diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-16 21:59:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-16 21:59:34 +0100 |
commit | 3546afb5589d36fbf4401b695f2571ed2c552347 (patch) | |
tree | c54c54391689130e25f429f4da0bb6daaee9222c /plugins/muc/mod_muc.lua | |
parent | 9f859ecd6c81c51d2aa8c7cfb97916190004cc23 (diff) | |
download | prosody-3546afb5589d36fbf4401b695f2571ed2c552347.tar.gz prosody-3546afb5589d36fbf4401b695f2571ed2c552347.zip |
MUC: Only fetch stored room state if room config is loaded without error
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 23e10bb0..242178ae 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -156,9 +156,9 @@ end 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 |