comparison mod_isolate_host/mod_isolate_host.lua @ 1792:8e19b943c2cd

mod_isolate_host: Bump event hook priorities to make sure they are above the core plugins
author Kim Alvefur <zash@zash.se>
date Wed, 26 Aug 2015 18:04:55 +0200
parents 9466efd10af9
children bc75fc9400ae
comparison
equal deleted inserted replaced
1791:8df071457dee 1792:8e19b943c2cd
25 end 25 end
26 end 26 end
27 27
28 for stanza_type in stanza_types do 28 for stanza_type in stanza_types do
29 for jid_type in jid_types do 29 for jid_type in jid_types do
30 module:hook("pre-"..stanza_type.."/"..jid_type, check_stanza); 30 module:hook("pre-"..stanza_type.."/"..jid_type, check_stanza, 1);
31 end 31 end
32 end 32 end
33 33
34 function check_user_isolated(event) 34 function check_user_isolated(event)
35 local session = event.session; 35 local session = event.session;