Comparison

plugins/mod_dialback.lua @ 8516:83cab25465e6

mod_dialback: Expand abbrevation
author Kim Alvefur <zash@zash.se>
date Sun, 04 Feb 2018 01:16:43 +0100
parent 8515:cbb5f4488b1b
child 8517:980d2daf3ed4
comparison
equal deleted inserted replaced
8515:cbb5f4488b1b 8516:83cab25465e6
151 -- Warn the original connection that is was not verified successfully 151 -- Warn the original connection that is was not verified successfully
152 log("warn", "authoritative server for %s denied the key", attr.from or "(unknown)"); 152 log("warn", "authoritative server for %s denied the key", attr.from or "(unknown)");
153 valid = "invalid"; 153 valid = "invalid";
154 end 154 end
155 if dialback_verifying.destroyed then 155 if dialback_verifying.destroyed then
156 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result", 156 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the dialback result",
157 tostring(dialback_verifying):match("%w+$")); 157 tostring(dialback_verifying):match("%w+$"));
158 else 158 else
159 dialback_verifying.sends2s( 159 dialback_verifying.sends2s(
160 st.stanza("db:result", { from = attr.to, to = attr.from, id = attr.id, type = valid }) 160 st.stanza("db:result", { from = attr.to, to = attr.from, id = attr.id, type = valid })
161 :text(dialback_verifying.hosts[attr.from].dialback_key)); 161 :text(dialback_verifying.hosts[attr.from].dialback_key));