Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 1778:f4213d84ba8a |
child | 1818:a394e0bd4847 |
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");