mod_muc_ban_ip: Increase priority of hooks, fixes if eg mod_presence gets called first
--- 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