aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-07 20:54:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-07 20:54:53 +0500
commitddea87b3144f3af9e39182e236f440463d2e3565 (patch)
treef08be44438875b91a1a39ca8511819ae9fd60015 /plugins/muc
parentbacd4ff11eb60f01d5c390ae7b73ce144252e939 (diff)
downloadprosody-ddea87b3144f3af9e39182e236f440463d2e3565.tar.gz
prosody-ddea87b3144f3af9e39182e236f440463d2e3565.zip
MUC: Added service discovery replies for rooms.
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 301fba4c..7f01b9af 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -184,8 +184,12 @@ function room_mt:send_history(to)
end
end
-local function room_get_disco_info(self, stanza) end
-local function room_get_disco_items(self, stanza) 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"});
+end
+local function room_get_disco_items(self, stanza)
+ return st.reply(stanza):query("http://jabber.org/protocol/disco#items");
+end
function room_mt:set_subject(current_nick, subject)
-- TODO check nick's authority
if subject == "" then subject = nil; end