changeset 1547:e98c335c6554

mod_mam_muc: Limit search to groupchat messages (we use the internal 'with' field stanza types)
author Kim Alvefur <zash@zash.se>
date Sat, 08 Nov 2014 15:46:47 +0100
parents fff2858c554f
children d3c847070618
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Sat Nov 08 15:45:19 2014 +0100
+++ b/mod_mam_muc/mod_mam_muc.lua	Sat Nov 08 15:46:47 2014 +0100
@@ -195,6 +195,7 @@
 		before = before; after = after;
 		reverse = reverse;
 		total = true;
+		with = "message<groupchat";
 	});
 
 	if not data then