From 430276629fba39232a2e211c626b8736712a8e54 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 3 Jan 2009 18:46:52 +0500 Subject: mod_muc: Room subject should be sent only the newly joined occupant --- plugins/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua index 5ac1d10a..8df96749 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -191,7 +191,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc broadcast_presence(nil, to, room); -- TODO send discussion history if rooms_info:get(room, 'subject') then - broadcast_message(room, room, rooms_info:get(room, 'subject'), nil); + core_route_stanza(component, st.message({type='groupchat', from=room, to=from}):tag("subject"):text(rooms_info:get(room, 'subject'))); end end end -- cgit v1.2.3