diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-18 19:40:04 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-18 19:40:04 +0000 |
commit | 64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c (patch) | |
tree | 231e95fa464bb6579c7dc0cd60caacaf860182ab | |
parent | 01c770997f61259d6e5b8ae5018aab1ef6ac0ef8 (diff) | |
download | prosody-64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c.tar.gz prosody-64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c.zip |
Remove useless check for unavailable presence (which never exists)
-rw-r--r-- | core/sessionmanager.lua | 2 |
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); |