MUC: Save room after subject is changed
authorKim Alvefur <zash@zash.se>
Fri, 15 Apr 2016 16:03:55 +0000 (18:03 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 15 Apr 2016 16:03:55 +0000 (18:03 +0200)
plugins/muc/subject.lib.lua

index 8f5f923184c946c61c961db348d08211ee72fe7b..45aa6934ebf4d15b6ea583acedecf65599dbf2d3 100644 (file)
@@ -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"));