# HG changeset patch # User Thijs Alkemade # Date 1337891357 -7200 # Node ID 74efb2db00a681541a58e1b12319157d02472bd7 # Parent 9d8efb804a002634cc7319bc2dbf97c6e56ab9ae mod_mam: From the spec: servers SHOULD NOT archive messages that do not have a child tag. diff -r 9d8efb804a00 -r 74efb2db00a6 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Wed May 23 21:52:14 2012 +0200 +++ b/mod_mam/mod_mam.lua Thu May 24 22:29:17 2012 +0200 @@ -206,7 +206,8 @@ -- Don't store messages of these types if orig_type == "error" or orig_type == "headline" - or orig_type == "groupchat" then + or orig_type == "groupchat" + or not stanza:get_child("body") then return; -- TODO Maybe headlines should be configurable? -- TODO Write a mod_mam_muc for groupchat messages.