Mercurial > prosody-hg
comparison plugins/mod_dialback.lua @ 8515:cbb5f4488b1b
mod_dialback: Split long line [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 04 Feb 2018 01:16:28 +0100 |
| parents | 671343e92070 |
| children | 83cab25465e6 |
comparison
equal
deleted
inserted
replaced
| 8514:671343e92070 | 8515:cbb5f4488b1b |
|---|---|
| 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 |
