Software /
code /
prosody
Diff
plugins/mod_presence.lua @ 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 |
parent | 1568:b11bac42d56f |
child | 1626:7f17d0d00fbb |
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