mod_component_guard: missing hook priority.
authorMarco Cirillo <maranda@lightwitch.org>
Sat, 22 Oct 2011 19:30:43 +0000
changeset 457 79ba4f95d65c
parent 456 73f06a14390a
child 458 4149fcacbbf1
mod_component_guard: missing hook priority.
mod_component_guard/mod_component_guard.lua
--- a/mod_component_guard/mod_component_guard.lua	Sat Oct 22 17:34:14 2011 +0000
+++ b/mod_component_guard/mod_component_guard.lua	Sat Oct 22 19:30:43 2011 +0000
@@ -56,7 +56,7 @@
 local function handle_activation (host)
 	if guard_blockall:contains(host) or guard_protect:contains(host) then
 		if hosts[host] and hosts[host].events then
-			hosts[host].events.add_handler("stanza/jabber:server:dialback:result", sdr_hook);
+			hosts[host].events.add_handler("stanza/jabber:server:dialback:result", sdr_hook, 100);
                 	module:log ("debug", "adding component protection for: "..host);
 		end
 	end