Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 8588:54b60a1eea2d
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 (fixes #1097)
| author | Jonas Wielicki <jonas@wielicki.name> |
|---|---|
| date | Thu, 08 Mar 2018 17:36:36 +0100 |
| parents | 082d12728645 |
| children | 4b5a00fffb22 |
comparison
equal
deleted
inserted
replaced
| 8587:986c3e22ec32 | 8588:54b60a1eea2d |
|---|---|
| 229 function room_mt:get_disco_info(stanza) | 229 function room_mt:get_disco_info(stanza) |
| 230 local count = 0; for _ in pairs(self._occupants) do count = count + 1; end | 230 local count = 0; for _ in pairs(self._occupants) do count = count + 1; end |
| 231 return st.reply(stanza):query("http://jabber.org/protocol/disco#info") | 231 return st.reply(stanza):query("http://jabber.org/protocol/disco#info") |
| 232 :tag("identity", {category="conference", type="text", name=self:get_name()}):up() | 232 :tag("identity", {category="conference", type="text", name=self:get_name()}):up() |
| 233 :tag("feature", {var="http://jabber.org/protocol/muc"}):up() | 233 :tag("feature", {var="http://jabber.org/protocol/muc"}):up() |
| 234 :tag("feature", {var="http://jabber.org/protocol/muc#stable_id"}):up() | |
| 234 :tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up() | 235 :tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up() |
| 235 :tag("feature", {var=self:is_moderated() and "muc_moderated" or "muc_unmoderated"}):up() | 236 :tag("feature", {var=self:is_moderated() and "muc_moderated" or "muc_unmoderated"}):up() |
| 236 :tag("feature", {var=self:is_members_only() and "muc_membersonly" or "muc_open"}):up() | 237 :tag("feature", {var=self:is_members_only() and "muc_membersonly" or "muc_open"}):up() |
| 237 :tag("feature", {var=self:is_persistent() and "muc_persistent" or "muc_temporary"}):up() | 238 :tag("feature", {var=self:is_persistent() and "muc_persistent" or "muc_temporary"}):up() |
| 238 :tag("feature", {var=self:is_hidden() and "muc_hidden" or "muc_public"}):up() | 239 :tag("feature", {var=self:is_hidden() and "muc_hidden" or "muc_public"}):up() |
