From ef16a4a9ee5318387cd765c1873c725dc5e3bf63 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 18 Apr 2016 19:08:31 +0200 Subject: MUC: Save yourself! (fixes reference to current room) --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3