aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commitb3640131f9f16fd273b8f78654472f5d0b79e531 (patch)
tree127b37e8bfbae4166760a6623313e9dbbb3aad3a /plugins/muc
parent1e7dce90d51f387e5c033a5be7930b7f491d601f (diff)
downloadprosody-b3640131f9f16fd273b8f78654472f5d0b79e531.tar.gz
prosody-b3640131f9f16fd273b8f78654472f5d0b79e531.zip
MUC: Save yourself! (fixes reference to current room)
Diffstat (limited to 'plugins/muc')
-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