Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 8837:1b10802a770e
MUC: correctly emit <status/> tags
author | Jonas Wielicki <jonas@wielicki.name> |
---|---|
date | Thu, 17 May 2018 17:11:42 +0200 |
parent | 8836:564e897f0790 |
child | 8838:6d4b0895f76d |
comparison
equal
deleted
inserted
replaced
8836:564e897f0790 | 8837:1b10802a770e |
---|---|
1132 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}) | 1132 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}) |
1133 :tag("item", {affiliation=affiliation or "none", role=role or "none"}) | 1133 :tag("item", {affiliation=affiliation or "none", role=role or "none"}) |
1134 :tag("reason"):text(reason or ""):up() | 1134 :tag("reason"):text(reason or ""):up() |
1135 :up(); | 1135 :up(); |
1136 local self_x = st.clone(x); | 1136 local self_x = st.clone(x); |
1137 self_x:tag("status", {code="110"}); | 1137 self_x:tag("status", {code="110"}):up(); |
1138 local presence_type = nil; | 1138 local presence_type = nil; |
1139 if not role then -- getting kicked | 1139 if not role then -- getting kicked |
1140 presence_type = "unavailable"; | 1140 presence_type = "unavailable"; |
1141 if affiliation == "outcast" then | 1141 if affiliation == "outcast" then |
1142 -- banned | 1142 -- banned |