Software /
code /
prosody
Diff
plugins/muc/name.lib.lua @ 7353:ca31d3271cf8
MUC: Save room to storage once after form processing, not in each individual setter
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 15 Apr 2016 11:50:55 +0200 |
parent | 7352:50b24b3476e6 |
child | 7401:e16b3fd0bd80 |
line wrap: on
line diff
--- a/plugins/muc/name.lib.lua Thu Apr 14 21:23:09 2016 +0200 +++ b/plugins/muc/name.lib.lua Fri Apr 15 11:50:55 2016 +0200 @@ -17,7 +17,6 @@ if name == "" or name == (jid_split(room.jid)) then name = nil; end if room._data.name == name then return false; end room._data.name = name; - room:save(true); return true; end