projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MUC: Save room to storage once after form processing, not in each individual setter
[prosody.git]
/
plugins
/
muc
/
hidden.lib.lua
diff --git
a/plugins/muc/hidden.lib.lua
b/plugins/muc/hidden.lib.lua
index e1821bd795b3afaf2d4816f3b4cbded6f48494b2..43521e14953ddcdbf989c9f81873fc5670e6f8ca 100644
(file)
--- a/
plugins/muc/hidden.lib.lua
+++ b/
plugins/muc/hidden.lib.lua
@@
-15,7
+15,6
@@
local function set_hidden(room, hidden)
hidden = hidden and true or nil;
if get_hidden(room) == hidden then return false; end
room._data.hidden = hidden;
- room:save(true);
return true;
end