mod_host_guard: removed redundant cleanup code (tested it's completely unrequired).
authorMarco Cirillo <maranda@lightwitch.org>
Mon, 25 Jun 2012 23:53:40 +0000
changeset 726 455a9b8fac27
parent 725 f79fda2d7e51
child 727 99f5846bcd85
mod_host_guard: removed redundant cleanup code (tested it's completely unrequired).
mod_host_guard/mod_host_guard.lua
--- a/mod_host_guard/mod_host_guard.lua	Mon Jun 25 23:26:09 2012 +0000
+++ b/mod_host_guard/mod_host_guard.lua	Mon Jun 25 23:53:40 2012 +0000
@@ -64,10 +64,6 @@
 
 local function init_hosts()
 	for n in pairs(hosts) do
-		-- This is a bit redundant but better safe then sorry.
-		hosts[n].events.remove_handler("s2sin-established", s2s_hook)
-		hosts[n].events.remove_handler("route/remote", rr_hook)
-		hosts[n].events.remove_handler("stanza/jabber:server:dialback:result", s2s_hook)
 		if guard_blockall:contains(n) or guard_protect:contains(n) then	handle_activation(n) end
 	end
 end
@@ -105,4 +101,3 @@
 else
 	module:hook ("server-started", setup)
 end
-