diff options
-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); |