Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 8578:cf10cd3eb728
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 |
parent | 8477:597c23e1c38e |
child | 8581:f7c397935872 |
child | 8590:4b5a00fffb22 |
comparison
equal
deleted
inserted
replaced
8577:75d5eee6fcdf | 8578:cf10cd3eb728 |
---|---|
211 function room_mt:get_disco_info(stanza) | 211 function room_mt:get_disco_info(stanza) |
212 local count = 0; for _ in pairs(self._occupants) do count = count + 1; end | 212 local count = 0; for _ in pairs(self._occupants) do count = count + 1; end |
213 local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#info") | 213 local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#info") |
214 :tag("identity", {category="conference", type="text", name=self:get_name()}):up() | 214 :tag("identity", {category="conference", type="text", name=self:get_name()}):up() |
215 :tag("feature", {var="http://jabber.org/protocol/muc"}):up() | 215 :tag("feature", {var="http://jabber.org/protocol/muc"}):up() |
216 :tag("feature", {var="http://jabber.org/protocol/muc#stable_id"}):up() | |
216 :tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up() | 217 :tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up() |
217 :tag("feature", {var=self:get_moderated() and "muc_moderated" or "muc_unmoderated"}):up() | 218 :tag("feature", {var=self:get_moderated() and "muc_moderated" or "muc_unmoderated"}):up() |
218 :tag("feature", {var=self:get_members_only() and "muc_membersonly" or "muc_open"}):up() | 219 :tag("feature", {var=self:get_members_only() and "muc_membersonly" or "muc_open"}):up() |
219 :tag("feature", {var=self:get_persistent() and "muc_persistent" or "muc_temporary"}):up() | 220 :tag("feature", {var=self:get_persistent() and "muc_persistent" or "muc_temporary"}):up() |
220 :tag("feature", {var=self:get_hidden() and "muc_hidden" or "muc_public"}):up() | 221 :tag("feature", {var=self:get_hidden() and "muc_hidden" or "muc_public"}):up() |