Changeset

7694:bffbea1187ca

MUC: Run component shutdown after mod_c2s has closed its sessions (prevents ghosts)
author Kim Alvefur <zash@zash.se>
date Sat, 15 Oct 2016 17:40:31 +0200
parents 7693:93c041d5bb0b
children 7697:bd854e762875
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Thu Oct 13 16:31:19 2016 +0200
+++ b/plugins/muc/mod_muc.lua	Sat Oct 15 17:40:31 2016 +0200
@@ -306,7 +306,7 @@
 		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";