aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-22 00:38:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-22 00:38:06 +0500
commit0b8360b9a110abb2915a19774af49137205310cb (patch)
tree6730a443eb3cd9de309601421df8be68ec8c14c1 /plugins
parent68cbd6d4b0d8673edc08d42d61ab6c6603470c36 (diff)
downloadprosody-0b8360b9a110abb2915a19774af49137205310cb.tar.gz
prosody-0b8360b9a110abb2915a19774af49137205310cb.zip
MUC: Added MUC feature to the disco#info replies of rooms.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 6d74c7ba..fb72a9e3 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -187,7 +187,9 @@ function room_mt:send_history(to)
end
local function room_get_disco_info(self, stanza)
- return st.reply(stanza):query("http://jabber.org/protocol/disco#info"):tag("identity", {category="conference", type="text"});
+ return st.reply(stanza):query("http://jabber.org/protocol/disco#info")
+ :tag("identity", {category="conference", type="text"}):up()
+ :tag("feature", {var="http://jabber.org/protocol/muc"});
end
local function room_get_disco_items(self, stanza)
return st.reply(stanza):query("http://jabber.org/protocol/disco#items");