Software /
code /
prosody
Diff
plugins/muc/muc.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 | 7347:795a95258292 |
child | 7353:ca31d3271cf8 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Apr 12 19:35:55 2016 +0200 +++ b/plugins/muc/muc.lib.lua Thu Apr 14 21:23:09 2016 +0200 @@ -36,6 +36,10 @@ 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 @@ 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