From cac82fda13e1b5fabda5314c5d986220af8ac5cc Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Fri, 15 Apr 2016 18:03:55 +0200
Subject: MUC: Save room after subject is changed

---
 plugins/muc/subject.lib.lua | 1 +
 1 file changed, 1 insertion(+)

(limited to 'plugins/muc')

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"));
-- 
cgit v1.2.3