aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2020-12-01 15:39:17 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2020-12-01 15:39:17 +0100
commit02cc212f160c45cb119e44438198f4b78344e2d0 (patch)
treefe0189c11c41bc995a4f32bc968a8ca3e543fe1e /src
parentMake decide room better handle rooms that were just hibernated (diff)
Fix typo in last commit
Diffstat (limited to 'src')
-rw-r--r--src/mod_muc_admin.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index 1523fcc91..b082f8c29 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -871,7 +871,7 @@ decide_rooms(Method, Rooms, Last_allowed) ->
Decide = fun(R) -> decide_room(Method, R, Last_allowed) end,
lists:filter(Decide, Rooms).
-decide_room(unused, {_Room_name, _Host, _ServerHost, Room_pid}, Last_allowed) ->
+decide_room(unused, {_Room_name, _Host, ServerHost, Room_pid}, Last_allowed) ->
NodeStartTime = erlang:system_time(microsecond) -
1000000*(erlang:monotonic_time(second)-ejabberd_config:get_node_start()),
OnlyHibernated = case mod_muc_opt:hibernation_timeout(ServerHost) of