aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 6e522d73..db0e7f8d 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -266,6 +266,9 @@ end
local function should_store(stanza) --> boolean, reason: string
local st_type = stanza.attr.type or "normal";
local st_to_full = (stanza.attr.to or ""):find("/");
+ if st_type == "error" then
+ st_to_full = (stanza.attr.from or ""):find("/");
+ end
if st_type == "headline" then
-- Headline messages are ephemeral by definition