core/stanza_router.lua
changeset 4816 897ec7dcdaa6
parent 4554 6ceabde7af91
child 4817 9cc1d3e49f19
--- a/core/stanza_router.lua	Fri May 04 01:13:33 2012 +0200
+++ b/core/stanza_router.lua	Fri May 04 01:46:54 2012 +0100
@@ -192,7 +192,7 @@
 			stanza.attr.xmlns = nil;
 			local routed = prosody.events.fire_event("route/remote", { origin = origin, stanza = stanza, from_host = from_host, to_host = host }); --FIXME: Should be per-host (shared modules!)
 			stanza.attr.xmlns = xmlns; -- reset
-			if routed == nil then
+			if not routed then
 				core_route_stanza(hosts[from_host], st.error_reply(stanza, "cancel", "not-allowed", "Communication with remote domains is not enabled"));
 			end
 		end