Changeset

332:51e130b5c8de

Remove useless check for unavailable presence (which never exists)
author Matthew Wild <mwild1@gmail.com>
date Tue, 18 Nov 2008 19:40:04 +0000
parents 331:830fd67f9378
children 333:8d15b073fdbe
files core/sessionmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Tue Nov 18 17:52:33 2008 +0000
+++ b/core/sessionmanager.lua	Tue Nov 18 19:40:04 2008 +0000
@@ -37,7 +37,7 @@
 	(session.log or log)("info", "Destroying session");
 	
 	-- Send unavailable presence
-	if session.presence and session.presence.attr.type ~= "unavailable" then
+	if session.presence then
 		local pres = st.presence{ type = "unavailable" };
 		if err == "closed" then err = "connection closed"; end
 		pres:tag("status"):text("Disconnected: "..err);