aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/subject.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua
index 8f5f9231..45aa6934 100644
--- a/plugins/muc/subject.lib.lua
+++ b/plugins/muc/subject.lib.lua
@@ -82,6 +82,7 @@ module:hook("muc-occupant-groupchat", function(event)
if role_rank >= valid_roles.moderator or
( role_rank >= valid_roles.participant and get_changesubject(event.room) ) then -- and participant
set_subject(event.room, occupant.nick, subject:get_text());
+ room:save();
return true;
else
event.origin.send(st.error_reply(stanza, "auth", "forbidden"));