Diff

core/sessionmanager.lua @ 950:a00b4269de70

core.sessionmanager: Hop out of <status> tag so that MUC doesn't insert into the wrong level
author Matthew Wild <mwild1@gmail.com>
date Fri, 03 Apr 2009 01:29:59 +0100
parent 930:fed53329818d
child 959:e3db909065f2
line wrap: on
line diff
--- a/core/sessionmanager.lua	Tue Mar 31 20:24:14 2009 +0100
+++ b/core/sessionmanager.lua	Fri Apr 03 01:29:59 2009 +0100
@@ -59,7 +59,7 @@
 	if session.presence then
 		local pres = st.presence{ type = "unavailable" };
 		if (not err) or err == "closed" then err = "connection closed"; end
-		pres:tag("status"):text("Disconnected: "..err);
+		pres:tag("status"):text("Disconnected: "..err):up();
 		session:dispatch_stanza(pres);
 	end