From 1d8cbe75d939b191873cb5921536227ff381455b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 11 May 2012 01:54:36 +0100 Subject: mod_dialback: Fix logic bug - we should have both a to and from at this point --- plugins/mod_dialback.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua index c2392502..3d1fe0e1 100644 --- a/plugins/mod_dialback.lua +++ b/plugins/mod_dialback.lua @@ -91,7 +91,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event) origin.to_host = nameprep(attr.to); end - if not origin.from_host and not origin.to_host then + if not origin.from_host or not origin.to_host then origin.log("debug", "Improper addressing supplied, no to or from?"); origin:close("improper-addressing"); end -- cgit v1.2.3