aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_muc.erl19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/mod_muc.erl b/src/mod_muc.erl
index 59ea3190a..718f29b3e 100644
--- a/src/mod_muc.erl
+++ b/src/mod_muc.erl
@@ -790,18 +790,13 @@ load_permanent_rooms(Hosts, ServerHost, Opts) ->
lists:foreach(
fun(R) ->
{Room, _} = R#muc_room.name_host,
- case proplists:get_bool(persistent, R#muc_room.opts) of
- true ->
- case RMod:find_online_room(ServerHost, Room, Host) of
- error ->
- start_room(RMod, Host, ServerHost, Access,
- Room, HistorySize, RoomShaper,
- R#muc_room.opts, QueueType);
- {ok, _} ->
- ok
- end;
- _ ->
- forget_room(ServerHost, Host, Room)
+ case RMod:find_online_room(ServerHost, Room, Host) of
+ error ->
+ start_room(RMod, Host, ServerHost, Access,
+ Room, HistorySize, RoomShaper,
+ R#muc_room.opts, QueueType);
+ {ok, _} ->
+ ok
end
end, get_rooms(ServerHost, Host))
end, Hosts);