plugins/muc/mod_muc.lua
changeset 8662 4006755c1097
parent 8661 75c7e887c4b9
child 8663 3b54f8472b51
--- a/plugins/muc/mod_muc.lua	Fri Mar 16 21:59:34 2018 +0100
+++ b/plugins/muc/mod_muc.lua	Fri Mar 16 21:59:41 2018 +0100
@@ -158,7 +158,10 @@
 	local data, err = room_configs:get(node);
 	if data then
 		module:log("debug", "Restoring room %s from storage", jid);
-		local state = room_state:get(node);
+		local state, s_err = room_state:get(node);
+		if not state and s_err then
+			module:log("debug", "Could not restore state of room %s: %s", jid, s_err);
+		end
 		local room = muclib.restore_room(data, state);
 		return track_room(room);
 	elseif err then