aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-11 01:54:36 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-11 01:54:36 +0100
commit5360fe4c3e80bdcf4fb030792cefb8f162c372c9 (patch)
treeaddbc4d37893bd97dc4522e1bf61bee9d402d5be /plugins/mod_dialback.lua
parentfd5826e721ca1ffa36bd4bb69cef86d1629e2d50 (diff)
downloadprosody-5360fe4c3e80bdcf4fb030792cefb8f162c372c9.tar.gz
prosody-5360fe4c3e80bdcf4fb030792cefb8f162c372c9.zip
mod_dialback: Fix logic bug - we should have both a to and from at this point
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua2
1 files changed, 1 insertions, 1 deletions
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