aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/subject.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-15 18:03:55 +0200
committerKim Alvefur <zash@zash.se>2016-04-15 18:03:55 +0200
commitbedf8e457aeae1f2f003a74de91adf3b8b214ac5 (patch)
tree5baa93ac25d1dd8457017dca85da1f34b0779349 /plugins/muc/subject.lib.lua
parentc5c18714c40d8b13616bbbb85c37403f6d2037f1 (diff)
downloadprosody-bedf8e457aeae1f2f003a74de91adf3b8b214ac5.tar.gz
prosody-bedf8e457aeae1f2f003a74de91adf3b8b214ac5.zip
MUC: Save room after subject is changed
Diffstat (limited to 'plugins/muc/subject.lib.lua')
-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"));