aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-27 01:27:51 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-27 01:27:51 +0100
commita0b8648d1f2e87e8c8b6f69bb866d7d4dad85efb (patch)
tree19df1a98adb4d381117954a65f63f894327218fe /plugins
parent23a10d0390865c0e359e3a2e8faa53bd332a2941 (diff)
downloadprosody-a0b8648d1f2e87e8c8b6f69bb866d7d4dad85efb.tar.gz
prosody-a0b8648d1f2e87e8c8b6f69bb866d7d4dad85efb.zip
mod_presence: Tag outgoing unavailables generated by a disconnect with a from attribute
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua2
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