Comparison

plugins/mod_dialback.lua @ 8457:20c5ace92b19

mod_dialback: Split long line [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 05 Dec 2017 12:26:57 +0100
parent 8455:1d0862814bfc
child 8458:e9c7ac97cb52
comparison
equal deleted inserted replaced
8456:891239e7e896 8457:20c5ace92b19
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", tostring(dialback_verifying):match("%w+$")); 156 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result",
157 tostring(dialback_verifying):match("%w+$"));
157 else 158 else
158 dialback_verifying.sends2s( 159 dialback_verifying.sends2s(
159 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 })
160 :text(dialback_verifying.hosts[attr.from].dialback_key)); 161 :text(dialback_verifying.hosts[attr.from].dialback_key));
161 end 162 end