Diff

mod_mam/mod_mam.lua @ 2512:bc7539ccbde1

mod_mam: Normalize whitespace
author Kim Alvefur <zash@zash.se>
date Mon, 20 Feb 2017 00:48:31 +0100
parent 2511:34a6ba5dfe4f
child 2513:66a61f48e376
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Mon Feb 20 00:09:13 2017 +0100
+++ b/mod_mam/mod_mam.lua	Mon Feb 20 00:48:31 2017 +0100
@@ -141,7 +141,6 @@
 	local before, after = qset and qset.before, qset and qset.after;
 	if type(before) ~= "string" then before = nil; end
 
-
 	-- Load all the data!
 	local data, err = archive:find(origin.username, {
 		start = qstart; ["end"] = qend; -- Time range
@@ -267,6 +266,7 @@
 		log("debug", "Not archiving stanza: %s (type)", stanza:top_tag());
 		return;
 	end
+
 	-- or if hints suggest we shouldn't
 	if not stanza:get_child("store", "urn:xmpp:hints") then -- No hint telling us we should store
 		if stanza:get_child("no-permanent-store", "urn:xmpp:hints")