# HG changeset patch # User Kim Alvefur # Date 1428351683 -7200 # Node ID 8860405e2af67c75b802290dfd84ad1a09e7f0a4 # Parent 95b8b1f9a88210974ed8b3f602acc4cf559317a0 mod_muc_ban_ip: Increase priority of hooks, fixes if eg mod_presence gets called first diff -r 95b8b1f9a882 -r 8860405e2af6 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