aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_admin.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index 8ba07f83a..b5c8e7363 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -891,9 +891,8 @@ decide_room(unused, {_Room_name, _Host, ServerHost, Room_pid}, Last_allowed) ->
end
end,
Ts_now = calendar:universal_time(),
- HistorySize = mod_muc_opt:history_size(ServerHost),
{Has_hist, Last} = case p1_queue:is_empty(History) of
- true when (HistorySize == 0) or (Just_created == true) ->
+ true when Just_created == true ->
{false, 0};
true ->
Ts_diff = (erlang:system_time(microsecond)