Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 5580:db5d1a350cc7
mod_muc: Refactor config form handling, and allow for clients to submit incomplete forms. Fixes #246
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 May 2013 14:17:25 +0100 |
parent | 5577:8b09b0d068d4 |
child | 5659:9f9de8078164 |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Thu May 16 10:47:22 2013 +0100 +++ b/plugins/muc/mod_muc.lua Thu May 16 14:17:25 2013 +0100 @@ -115,7 +115,7 @@ local function get_disco_items(stanza) local reply = st.iq({type='result', id=stanza.attr.id, from=muc_host, to=stanza.attr.from}):query("http://jabber.org/protocol/disco#items"); for jid, room in pairs(rooms) do - if not room:is_hidden() then + if not room:get_hidden() then reply:tag("item", {jid=jid, name=room:get_name()}):up(); end end