Changeset

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
parents 949:640548e623b3
children 951:4b9207949735
files core/sessionmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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