aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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