mod_muc_mam: Set status code 170/171 on archiving configuration change
authorKim Alvefur <zash@zash.se>
Tue, 29 May 2018 04:24:43 +0200
changeset 8835 a9c3b15b9d37
parent 8834 f25fa63750fb
child 8836 9c90cd2fc4c3
mod_muc_mam: Set status code 170/171 on archiving configuration change
plugins/mod_muc_mam.lua
--- 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