aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/subject.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-14 21:23:09 +0200
committerKim Alvefur <zash@zash.se>2016-04-14 21:23:09 +0200
commite05eb9a0d70487b62ebd85686044af7859696799 (patch)
treeaf82934d908985673b978521766f7f30030b771b /plugins/muc/subject.lib.lua
parent0e905606b9bf28b8744ec13bcf586678d247a027 (diff)
downloadprosody-e05eb9a0d70487b62ebd85686044af7859696799.tar.gz
prosody-e05eb9a0d70487b62ebd85686044af7859696799.zip
MUC: Provide a noop stub room:save() method
Diffstat (limited to 'plugins/muc/subject.lib.lua')
-rw-r--r--plugins/muc/subject.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua
index 0b4e6fd6..2b1a2f52 100644
--- a/plugins/muc/subject.lib.lua
+++ b/plugins/muc/subject.lib.lua
@@ -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;