Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 348:aab28eacd84e
Show which session got disconnected in log message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 19 Nov 2008 22:03:39 +0000 |
parent | 347:fba39fda0879 |
child | 352:a73a5afd7da3 |
comparison
equal
deleted
inserted
replaced
347:fba39fda0879 | 348:aab28eacd84e |
---|---|
54 -- Warn the original connection that is was not verified successfully | 54 -- Warn the original connection that is was not verified successfully |
55 log("warn", "dialback for "..(origin.dialback_verifying.from_host or "(unknown)").." failed"); | 55 log("warn", "dialback for "..(origin.dialback_verifying.from_host or "(unknown)").." failed"); |
56 valid = "invalid"; | 56 valid = "invalid"; |
57 end | 57 end |
58 if not origin.dialback_verifying.sends2s then | 58 if not origin.dialback_verifying.sends2s then |
59 log("warn", "Incoming s2s session was closed in the meantime, so we can't notify it of the db result"); | 59 log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result", tostring(origin.dialback_verifying):match("%w+$")); |
60 else | 60 else |
61 origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>", | 61 origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>", |
62 attr.from, attr.to, attr.id, valid, origin.dialback_verifying.dialback_key)); | 62 attr.from, attr.to, attr.id, valid, origin.dialback_verifying.dialback_key)); |
63 end | 63 end |
64 end | 64 end |