From 7ea91caa95e5f1e65a03032559241ec4832203df Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 15 Apr 2016 11:50:55 +0200 Subject: MUC: Save room to storage once after form processing, not in each individual setter --- plugins/muc/subject.lib.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugins/muc/subject.lib.lua') diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua index 2b1a2f52..8f5f9231 100644 --- a/plugins/muc/subject.lib.lua +++ b/plugins/muc/subject.lib.lua @@ -25,7 +25,6 @@ local function set_changesubject(room, changesubject) changesubject = changesubject and true or nil; if get_changesubject(room) == changesubject then return false; end room._data.changesubject = changesubject; - room:save(true); return true; end @@ -61,7 +60,6 @@ local function set_subject(room, from, subject) if old_subject == subject and old_from == from then return false; end room._data.subject_from = from; room._data.subject = subject; - room:save(); local msg = create_subject_message(from, subject); room:broadcast_message(msg); return true; -- cgit v1.2.3