aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-01-03 18:46:52 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-01-03 18:46:52 +0500
commit430276629fba39232a2e211c626b8736712a8e54 (patch)
treef016b12cbe887ae0cda47f192d56835a991cbe62
parent9a19a95fe839be95fe46048b8ebf12d92d69135d (diff)
downloadprosody-430276629fba39232a2e211c626b8736712a8e54.tar.gz
prosody-430276629fba39232a2e211c626b8736712a8e54.zip
mod_muc: Room subject should be sent only the newly joined occupant
-rw-r--r--plugins/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
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