Diff

plugins/muc/mod_muc.lua @ 3510:711eb5bf94b4

MUC: Make the room node be the default room name (thanks Zash).
author Waqas Hussain <waqas20@gmail.com>
date Tue, 28 Sep 2010 16:36:17 +0500
parent 3388:02e668d64e05
child 3560:fb49b63e3fe2
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Sep 27 19:51:14 2010 +0500
+++ b/plugins/muc/mod_muc.lua	Tue Sep 28 16:36:17 2010 +0500
@@ -87,7 +87,7 @@
 	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