Mercurial > prosody-modules
comparison mod_muc_ban_ip/mod_muc_ban_ip.lua @ 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 | 591590de34ef |
children | 933403ee07ec |
comparison
equal
deleted
inserted
replaced
1646:95b8b1f9a882 | 1647:8860405e2af6 |
---|---|
53 end | 53 end |
54 module:log("debug", "Not banned: %s from %s", ip, to) | 54 module:log("debug", "Not banned: %s from %s", ip, to) |
55 end | 55 end |
56 | 56 |
57 function module.add_host(module) | 57 function module.add_host(module) |
58 module:hook("presence/full", check_for_incoming_ban); | 58 module:hook("presence/full", check_for_incoming_ban, 100); |
59 module:hook("pre-presence/full", check_for_ban); | 59 module:hook("pre-presence/full", check_for_ban, 100); |
60 end | 60 end |