Software /
code /
prosody
Changeset
1808:e164fdb2d18f
MUC: Added MUC feature to the disco#info replies of rooms.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 22 Sep 2009 00:38:06 +0500 |
parents | 1807:3bb0e5170692 |
children | 1817:5a86a9826b96 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Sep 21 14:46:12 2009 +0100 +++ b/plugins/muc/muc.lib.lua Tue Sep 22 00:38:06 2009 +0500 @@ -187,7 +187,9 @@ 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");