Comparison

plugins/mod_dialback.lua @ 4847:7a7cc4d98faf

mod_dialback: Fix logic bug - we should have both a to and from at this point
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 01:54:36 +0100
parent 4846:3bc3498df0a0
child 4848:f7a4920aed6b
comparison
equal deleted inserted replaced
4846:3bc3498df0a0 4847:7a7cc4d98faf
89 end 89 end
90 if not origin.to_host then 90 if not origin.to_host then
91 origin.to_host = nameprep(attr.to); 91 origin.to_host = nameprep(attr.to);
92 end 92 end
93 93
94 if not origin.from_host and not origin.to_host then 94 if not origin.from_host or not origin.to_host then
95 origin.log("debug", "Improper addressing supplied, no to or from?"); 95 origin.log("debug", "Improper addressing supplied, no to or from?");
96 origin:close("improper-addressing"); 96 origin:close("improper-addressing");
97 end 97 end
98 98
99 origin.log("debug", "asking %s if key %s belongs to them", from, stanza[1]); 99 origin.log("debug", "asking %s if key %s belongs to them", from, stanza[1]);