# HG changeset patch # User Kim Alvefur # Date 1527560683 -7200 # Node ID a9c3b15b9d3741c1f953f1f90c1a283588573d4c # Parent f25fa63750fb21b99c2fa9213ed82dc7441ec74f mod_muc_mam: Set status code 170/171 on archiving configuration change diff -r f25fa63750fb -r a9c3b15b9d37 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