diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_presence.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 3ca3b35e..a077d7bd 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -330,7 +330,7 @@ module:hook("resource-unbind", function(event) 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 |