Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 950:a00b4269de70
core.sessionmanager: Hop out of <status> tag so that MUC doesn't insert into the wrong level
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 03 Apr 2009 01:29:59 +0100 |
parent | 930:fed53329818d |
child | 959:e3db909065f2 |
comparison
equal
deleted
inserted
replaced
949:640548e623b3 | 950:a00b4269de70 |
---|---|
57 | 57 |
58 -- Send unavailable presence | 58 -- Send unavailable presence |
59 if session.presence then | 59 if session.presence then |
60 local pres = st.presence{ type = "unavailable" }; | 60 local pres = st.presence{ type = "unavailable" }; |
61 if (not err) or err == "closed" then err = "connection closed"; end | 61 if (not err) or err == "closed" then err = "connection closed"; end |
62 pres:tag("status"):text("Disconnected: "..err); | 62 pres:tag("status"):text("Disconnected: "..err):up(); |
63 session:dispatch_stanza(pres); | 63 session:dispatch_stanza(pres); |
64 end | 64 end |
65 | 65 |
66 -- Remove session/resource from user's session list | 66 -- Remove session/resource from user's session list |
67 if session.host and session.username then | 67 if session.host and session.username then |