diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-14 21:23:09 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-14 21:23:09 +0200 |
commit | e05eb9a0d70487b62ebd85686044af7859696799 (patch) | |
tree | af82934d908985673b978521766f7f30030b771b /plugins/muc/muc.lib.lua | |
parent | 0e905606b9bf28b8744ec13bcf586678d247a027 (diff) | |
download | prosody-e05eb9a0d70487b62ebd85686044af7859696799.tar.gz prosody-e05eb9a0d70487b62ebd85686044af7859696799.zip |
MUC: Provide a noop stub room:save() method
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 02bc47f0..7ff9bde5 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -36,6 +36,10 @@ function room_mt:__tostring() return "MUC room ("..self.jid..")"; end +function room_mt.save() + -- overriden by mod_muc.lua +end + function room_mt:get_occupant_jid(real_jid) return self._jid_nick[real_jid] end @@ -695,7 +699,7 @@ function room_mt:process_form(origin, stanza) end event.field, event.value = nil, nil; - if self.save then self:save(true); end + self:save(true); origin.send(st.reply(stanza)); if next(event.status_codes) then |