diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-01-03 18:46:52 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-01-03 18:46:52 +0500 |
commit | 430276629fba39232a2e211c626b8736712a8e54 (patch) | |
tree | f016b12cbe887ae0cda47f192d56835a991cbe62 /plugins | |
parent | 9a19a95fe839be95fe46048b8ebf12d92d69135d (diff) | |
download | prosody-430276629fba39232a2e211c626b8736712a8e54.tar.gz prosody-430276629fba39232a2e211c626b8736712a8e54.zip |
mod_muc: Room subject should be sent only the newly joined occupant
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_muc.lua | 2 |
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
|