From 93bba1d1fd246499434190fc1ebcdbff28fb6fe6 Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 14 Oct 2013 17:09:12 +0200 Subject: [PATCH] Fix for command rooms_unused_destroy in ejabberd 2.1.11+ --- mod_muc_admin/src/mod_muc_admin.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_muc_admin/src/mod_muc_admin.erl b/mod_muc_admin/src/mod_muc_admin.erl index 141fb6f..1fc1e2b 100644 --- a/mod_muc_admin/src/mod_muc_admin.erl +++ b/mod_muc_admin/src/mod_muc_admin.erl @@ -634,7 +634,7 @@ act_on_room(destroy, {N, H, Pid}, SH) -> gen_fsm:send_all_state_event( Pid, {destroy, "Room destroyed by rooms_unused_destroy."}), mod_muc:room_destroyed(H, N, Pid, SH), - mod_muc:forget_room(H, N); + mod_muc:forget_room(SH, H, N); act_on_room(list, _, _) -> ok.