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
commit1d8cbe75d939b191873cb5921536227ff381455b (patch)
treeaddbc4d37893bd97dc4522e1bf61bee9d402d5be /plugins/mod_dialback.lua
parent703e7dde18717b1f0adc4891d39d288aa4258444 (diff)
downloadprosody-1d8cbe75d939b191873cb5921536227ff381455b.tar.gz
prosody-1d8cbe75d939b191873cb5921536227ff381455b.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