Software /
code /
prosody
Diff
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 |
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