Software /
code /
prosody
Changeset
1606:bbadcaab0036
mod_presence: Tag outgoing unavailables generated by a disconnect with a from attribute
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 27 Jul 2009 01:27:51 +0100 |
parents | 1581:4cdf9cefa0bc |
children | 1607:d81f5bb1f6b8 1608:fb53fe17af36 |
files | plugins/mod_presence.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_presence.lua Thu Jul 23 12:01:00 2009 +0100 +++ b/plugins/mod_presence.lua Mon Jul 27 01:27:51 2009 +0100 @@ -330,7 +330,7 @@ pres:tag("status"):text("Disconnected: "..err):up(); session:dispatch_stanza(pres); elseif session.directed then - local pres = st.presence{ type = "unavailable" }; + local pres = st.presence{ type = "unavailable", from = session.full_jid }; if not(err) or err == "closed" then err = "connection closed"; end pres:tag("status"):text("Disconnected: "..err):up(); for jid in pairs(session.directed) do