Software /
code /
prosody
Diff
plugins/muc/subject.lib.lua @ 7352:50b24b3476e6
MUC: Provide a noop stub room:save() method
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 14 Apr 2016 21:23:09 +0200 |
parent | 6991:84e01dbb739e |
child | 7353:ca31d3271cf8 |
line wrap: on
line diff
--- a/plugins/muc/subject.lib.lua Tue Apr 12 19:35:55 2016 +0200 +++ b/plugins/muc/subject.lib.lua Thu Apr 14 21:23:09 2016 +0200 @@ -25,7 +25,7 @@ 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 @@ 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;