# HG changeset patch # User Waqas Hussain # Date 1252338893 -18000 # Node ID b2291156a9c2f4ca87fb3a46b7fbcfdd8438d10f # Parent 1614e8e62ad5c751f871ed9ab98a23710769e02e MUC: Added service discovery replies for rooms. diff -r 1614e8e62ad5 -r b2291156a9c2 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Mon Sep 07 20:53:33 2009 +0500 +++ b/plugins/muc/muc.lib.lua Mon Sep 07 20:54:53 2009 +0500 @@ -184,8 +184,12 @@ 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