Diff

plugins/muc/mod_muc.lua @ 7417:4c8ee8175f5e

MUC: Lower priority of hook so plugins hooks run before
author Kim Alvefur <zash@zash.se>
date Wed, 04 May 2016 11:08:51 +0200
parent 7415:cbb05b454c13
child 7536:3f8520b59677
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Sat Apr 30 17:25:06 2016 +0200
+++ b/plugins/muc/mod_muc.lua	Wed May 04 11:08:51 2016 +0200
@@ -125,7 +125,7 @@
 	if not room:has_occupant() and not persistent.get(room) then -- empty, non-persistent room
 		module:fire_event("muc-room-destroyed", { room = room });
 	end
-end);
+end, -1);
 
 function track_room(room)
 	rooms:set(room.jid, room);