aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-05-04 11:08:51 +0200
committerKim Alvefur <zash@zash.se>2016-05-04 11:08:51 +0200
commitc5f03239a377b96206fc636dc63281deb451b5c2 (patch)
tree93f96fac083f5f70ae0ea1ae7d5a5c266369c811 /plugins/muc/mod_muc.lua
parent840dad5a00ed739bd267013f843a70cc122aba1c (diff)
downloadprosody-c5f03239a377b96206fc636dc63281deb451b5c2.tar.gz
prosody-c5f03239a377b96206fc636dc63281deb451b5c2.zip
MUC: Lower priority of hook so plugins hooks run before
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index c1ecb4f1..1fd4c94b 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -125,7 +125,7 @@ module:hook("muc-occupant-left",function(event)
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);