aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-18 19:40:04 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-18 19:40:04 +0000
commit64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c (patch)
tree231e95fa464bb6579c7dc0cd60caacaf860182ab /core/sessionmanager.lua
parent01c770997f61259d6e5b8ae5018aab1ef6ac0ef8 (diff)
downloadprosody-64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c.tar.gz
prosody-64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c.zip
Remove useless check for unavailable presence (which never exists)
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index fbfb7964..76461b8a 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -37,7 +37,7 @@ function destroy_session(session)
(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);