aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/members_only.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/members_only.lib.lua
parent0e905606b9bf28b8744ec13bcf586678d247a027 (diff)
downloadprosody-e05eb9a0d70487b62ebd85686044af7859696799.tar.gz
prosody-e05eb9a0d70487b62ebd85686044af7859696799.zip
MUC: Provide a noop stub room:save() method
Diffstat (limited to 'plugins/muc/members_only.lib.lua')
-rw-r--r--plugins/muc/members_only.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/members_only.lib.lua b/plugins/muc/members_only.lib.lua
index d6388fc6..7a6de43b 100644
--- a/plugins/muc/members_only.lib.lua
+++ b/plugins/muc/members_only.lib.lua
@@ -44,7 +44,7 @@ local function set_members_only(room, members_only)
module:fire_event("muc-occupant-left", {room = room; nick = occupant.nick; occupant = occupant;});
end
end
- if room.save then room:save(true); end
+ room:save(true);
return true;
end