From 332c6b47df58aae6c9c4299d65e1fc43a4ca1989 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 15 Oct 2016 17:40:31 +0200 Subject: MUC: Run component shutdown after mod_c2s has closed its sessions (prevents ghosts) --- plugins/muc/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index d8553d5e..12b95b2c 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -306,7 +306,7 @@ function shutdown_component() room:save(nil, true); end end -module:hook_global("server-stopping", shutdown_component); +module:hook_global("server-stopping", shutdown_component, -300); do -- Ad-hoc commands module:depends "adhoc"; -- cgit v1.2.3