From 6ec6095d7765b7df36a10e665c62baf7fcded4cb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 29 May 2018 04:24:43 +0200 Subject: mod_muc_mam: Set status code 170/171 on archiving configuration change --- plugins/mod_muc_mam.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_muc_mam.lua') diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua index 3fdaeaa4..cfc383fc 100644 --- a/plugins/mod_muc_mam.lua +++ b/plugins/mod_muc_mam.lua @@ -83,6 +83,7 @@ if not log_all_rooms then module:hook("muc-config-submitted/"..muc_form_enable, function(event) event.room._data.archiving = event.value; + event.status_codes[event.value and "170" or "171"] = true; end); end -- cgit v1.2.3