From: Kim Alvefur Date: Fri, 15 Apr 2016 16:03:55 +0000 (+0200) Subject: MUC: Save room after subject is changed X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=388fa5f84ff3a9c237681ecc6bdf619a3dad6e2e;p=prosody.git MUC: Save room after subject is changed --- 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"));