# HG changeset patch # User Matthew Wild # Date 1336697676 -3600 # Node ID 7a7cc4d98fafeae1b360572dbef61d7bd7efbbbe # Parent 3bc3498df0a04bc68d4940e26be17e2dd761063c mod_dialback: Fix logic bug - we should have both a to and from at this point diff -r 3bc3498df0a0 -r 7a7cc4d98faf plugins/mod_dialback.lua --- a/plugins/mod_dialback.lua Fri May 11 01:53:32 2012 +0100 +++ b/plugins/mod_dialback.lua Fri May 11 01:54:36 2012 +0100 @@ -91,7 +91,7 @@ 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