mod_muc_ban_ip: Increase priority of hooks, fixes if eg mod_presence gets called first
authorKim Alvefur <zash@zash.se>
Mon, 06 Apr 2015 22:21:23 +0200
changeset 1651 8860405e2af6
parent 1650 95b8b1f9a882
child 1652 648ce9087902
mod_muc_ban_ip: Increase priority of hooks, fixes if eg mod_presence gets called first
mod_muc_ban_ip/mod_muc_ban_ip.lua
--- a/mod_muc_ban_ip/mod_muc_ban_ip.lua	Fri Apr 03 23:54:03 2015 +0200
+++ b/mod_muc_ban_ip/mod_muc_ban_ip.lua	Mon Apr 06 22:21:23 2015 +0200
@@ -55,6 +55,6 @@
 end
 
 function module.add_host(module)
-	module:hook("presence/full", check_for_incoming_ban);
-	module:hook("pre-presence/full", check_for_ban);
+	module:hook("presence/full", check_for_incoming_ban, 100);
+	module:hook("pre-presence/full", check_for_ban, 100);
 end