Changeset

8832:a9c3b15b9d37

mod_muc_mam: Set status code 170/171 on archiving configuration change
author Kim Alvefur <zash@zash.se>
date Tue, 29 May 2018 04:24:43 +0200
parents 8831:f25fa63750fb
children 8833:9c90cd2fc4c3
files plugins/mod_muc_mam.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Sat May 26 15:10:23 2018 +0200
+++ b/plugins/mod_muc_mam.lua	Tue May 29 04:24:43 2018 +0200
@@ -83,6 +83,7 @@
 
 	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