Comparison

plugins/mod_muc_mam.lua @ 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
parent 8786:adffadd88ff0
child 9001:23070882f3d4
comparison
equal deleted inserted replaced
8831:f25fa63750fb 8832:a9c3b15b9d37
81 ); 81 );
82 end); 82 end);
83 83
84 module:hook("muc-config-submitted/"..muc_form_enable, function(event) 84 module:hook("muc-config-submitted/"..muc_form_enable, function(event)
85 event.room._data.archiving = event.value; 85 event.room._data.archiving = event.value;
86 event.status_codes[event.value and "170" or "171"] = true;
86 end); 87 end);
87 end 88 end
88 89
89 -- Note: We ignore the 'with' field as this is internally used for stanza types 90 -- Note: We ignore the 'with' field as this is internally used for stanza types
90 local query_form = dataform { 91 local query_form = dataform {