mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_dialback: Fix logic bug - we should have both a to and from at this point
This commit is contained in:
parent
703e7dde18
commit
1d8cbe75d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue