aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_muc_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-29 04:24:43 +0200
committerKim Alvefur <zash@zash.se>2018-05-29 04:24:43 +0200
commit6ec6095d7765b7df36a10e665c62baf7fcded4cb (patch)
tree37d9fc2b56656e99d8985a8d1874d13306ec7618 /plugins/mod_muc_mam.lua
parent72104f7f6921876e8b4ae3256f08d679e39b2a9c (diff)
downloadprosody-6ec6095d7765b7df36a10e665c62baf7fcded4cb.tar.gz
prosody-6ec6095d7765b7df36a10e665c62baf7fcded4cb.zip
mod_muc_mam: Set status code 170/171 on archiving configuration change
Diffstat (limited to 'plugins/mod_muc_mam.lua')
-rw-r--r--plugins/mod_muc_mam.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua
index 3fdaeaa4..cfc383fc 100644
--- a/plugins/mod_muc_mam.lua
+++ b/plugins/mod_muc_mam.lua
@@ -83,6 +83,7 @@ if not log_all_rooms then
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