MUC: Provide a noop stub room:save() method
[prosody.git] / plugins / muc / subject.lib.lua
index 0b4e6fd6cf35c59c7abfb7d3e934097eb12e8df2..2b1a2f52ea35b286639abf44e7ac3d7171f00ab9 100644 (file)
@@ -25,7 +25,7 @@ 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;
-       if room.save then room:save(true); end
+       room:save(true);
        return true;
 end
 
@@ -61,7 +61,7 @@ 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;
-       if room.save then room:save(); end
+       room:save();
        local msg = create_subject_message(from, subject);
        room:broadcast_message(msg);
        return true;