aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-27 01:28:22 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-27 01:28:22 +0100
commit78a1d61bae7f554be06b8ecb93eab579769bbaed (patch)
tree36a06dc82c9e3ab38f2c4ac721595157afc23dac /plugins/mod_presence.lua
parent423921e9dd7d815f76bc490eeb1eed7bcf8b4816 (diff)
parenta0b8648d1f2e87e8c8b6f69bb866d7d4dad85efb (diff)
downloadprosody-78a1d61bae7f554be06b8ecb93eab579769bbaed.tar.gz
prosody-78a1d61bae7f554be06b8ecb93eab579769bbaed.zip
Merge with 0.5
Diffstat (limited to 'plugins/mod_presence.lua')
-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