aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-18 19:08:31 +0200
committerKim Alvefur <zash@zash.se>2016-04-18 19:08:31 +0200
commitef16a4a9ee5318387cd765c1873c725dc5e3bf63 (patch)
tree127b37e8bfbae4166760a6623313e9dbbb3aad3a /plugins/muc/muc.lib.lua
parent65a3d7f025cef63f4576a249cdb9d3feba72098f (diff)
downloadprosody-ef16a4a9ee5318387cd765c1873c725dc5e3bf63.tar.gz
prosody-ef16a4a9ee5318387cd765c1873c725dc5e3bf63.zip
MUC: Save yourself! (fixes reference to current room)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 434127b4..0ea24c08 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -783,7 +783,7 @@ function room_mt:handle_admin_query_set_command(origin, stanza)
else
success, errtype, err = nil, "cancel", "bad-request";
end
- room:save();
+ self:save();
if not success then
origin.send(st.error_reply(stanza, errtype, err));
else