aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Wielicki <jonas@wielicki.name>2018-03-08 17:36:36 +0100
committerJonas Wielicki <jonas@wielicki.name>2018-03-08 17:36:36 +0100
commitb549552ce71bd3315fdb39d11c5ee068daf53222 (patch)
tree8f5ed632aa9477ea40c933d6c92c7da18fc58fce
parentafcc3470e601b32c41f775b6a73e4c4351af4c8c (diff)
downloadprosody-b549552ce71bd3315fdb39d11c5ee068daf53222.tar.gz
prosody-b549552ce71bd3315fdb39d11c5ee068daf53222.zip
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 (fixes #1097)
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 8930feeb..5d8c6df5 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -213,6 +213,7 @@ function room_mt:get_disco_info(stanza)
local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#info")
:tag("identity", {category="conference", type="text", name=self:get_name()}):up()
:tag("feature", {var="http://jabber.org/protocol/muc"}):up()
+ :tag("feature", {var="http://jabber.org/protocol/muc#stable_id"}):up()
:tag("feature", {var=self:get_password() and "muc_passwordprotected" or "muc_unsecured"}):up()
:tag("feature", {var=self:get_moderated() and "muc_moderated" or "muc_unmoderated"}):up()
:tag("feature", {var=self:get_members_only() and "muc_membersonly" or "muc_open"}):up()