mod_mam/mod_mam.lua
changeset 619 cade7dac6159
parent 559 6be3a130c810
child 620 648e75c9d3e7
equal deleted inserted replaced
618:267548522810 619:cade7dac6159
   200 	local orig_from = stanza.attr.from;
   200 	local orig_from = stanza.attr.from;
   201 
   201 
   202 	if not orig_from and c2s then
   202 	if not orig_from and c2s then
   203 		orig_from = origin.full_jid;
   203 		orig_from = origin.full_jid;
   204 	end
   204 	end
       
   205 	orig_to = orig_to or orig_from; -- Weird corner cases
   205 
   206 
   206 	-- Don't store messages of these types
   207 	-- Don't store messages of these types
   207 	if orig_type == "error"
   208 	if orig_type == "error"
   208 	or orig_type == "headline"
   209 	or orig_type == "headline"
   209 	or orig_type == "groupchat" then
   210 	or orig_type == "groupchat" then