changeset 1647:8860405e2af6

mod_muc_ban_ip: Increase priority of hooks, fixes if eg mod_presence gets called first
author Kim Alvefur <zash@zash.se>
date Mon, 06 Apr 2015 22:21:23 +0200
parents 95b8b1f9a882
children 648ce9087902
files mod_muc_ban_ip/mod_muc_ban_ip.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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