Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 597:e33d384e1b2e
stanza_dispatch = core_process_stanza, fixed for xmpp{client,server} listeners, and sessionmanager for the new syntax
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 07 Dec 2008 19:04:23 +0000 |
parent | 583:5821eaa80baa |
child | 614:335f2921ae0c |
comparison
equal
deleted
inserted
replaced
596:9fba6b040126 | 597:e33d384e1b2e |
---|---|
67 -- Send unavailable presence | 67 -- Send unavailable presence |
68 if session.presence then | 68 if session.presence then |
69 local pres = st.presence{ type = "unavailable" }; | 69 local pres = st.presence{ type = "unavailable" }; |
70 if (not err) or err == "closed" then err = "connection closed"; end | 70 if (not err) or err == "closed" then err = "connection closed"; end |
71 pres:tag("status"):text("Disconnected: "..err); | 71 pres:tag("status"):text("Disconnected: "..err); |
72 session.stanza_dispatch(pres); | 72 session:dispatch_stanza(pres); |
73 end | 73 end |
74 | 74 |
75 -- Remove session/resource from user's session list | 75 -- Remove session/resource from user's session list |
76 if session.host and session.username then | 76 if session.host and session.username then |
77 -- FIXME: How can the below ever be nil? (but they sometimes are...) | 77 -- FIXME: How can the below ever be nil? (but they sometimes are...) |