aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-09-28 16:36:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-09-28 16:36:17 +0500
commitec28fe98377d225e2c19fb3e2e4d5757a3322d3e (patch)
tree9081d68256cde7f5a6e6ee84982cb98d1c3a7619 /plugins/muc/mod_muc.lua
parent1a415139e5c71d58f7971b4850299d575e853221 (diff)
downloadprosody-ec28fe98377d225e2c19fb3e2e4d5757a3322d3e.tar.gz
prosody-ec28fe98377d225e2c19fb3e2e4d5757a3322d3e.zip
MUC: Make the room node be the default room name (thanks Zash).
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index a9d9336c..3eab0cf5 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -87,7 +87,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
- reply:tag("item", {jid=jid, name=jid}):up();
+ reply:tag("item", {jid=jid, name=room:get_name()}):up();
end
end
return reply; -- TODO cache disco reply