Changeset

1607:d81f5bb1f6b8

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Mon, 27 Jul 2009 01:28:22 +0100
parents 1605:f6bd13fe1cb1 (current diff) 1606:bbadcaab0036 (diff)
children 1610:07be0ac220d8
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Sun Jul 26 20:58:37 2009 +0100
+++ b/plugins/mod_presence.lua	Mon Jul 27 01:28:22 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