aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commit19ceef8658d09afbe2fa47a34eb0c55cebf3d959 (patch)
treedb2980d86249081ea2cf72466401d43e982b0f47 /plugins/muc
parent6a404592eb7e429baf8cf14bc77455d9b3063a93 (diff)
downloadprosody-19ceef8658d09afbe2fa47a34eb0c55cebf3d959.tar.gz
prosody-19ceef8658d09afbe2fa47a34eb0c55cebf3d959.zip
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 (fixes #1097)
Diffstat (limited to 'plugins/muc')
-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 e8d565f2..b75714eb 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -231,6 +231,7 @@ function room_mt:get_disco_info(stanza)
return 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:is_moderated() and "muc_moderated" or "muc_unmoderated"}):up()
:tag("feature", {var=self:is_members_only() and "muc_membersonly" or "muc_open"}):up()