Software /
code /
prosody
Diff
core/sessionmanager.lua @ 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 |
parent | 331:830fd67f9378 |
child | 333:8d15b073fdbe |
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);