Diff

plugins/muc/history.lib.lua @ 9081:ce57c69a20e2

MUC: Split long lines [luacheck strict]
author Kim Alvefur <zash@zash.se>
date Fri, 03 Aug 2018 17:48:41 +0200
parent 9035:173c0e16e704
child 10230:dd7e924c74ef
line wrap: on
line diff
--- a/plugins/muc/history.lib.lua	Fri Aug 03 17:15:42 2018 +0200
+++ b/plugins/muc/history.lib.lua	Fri Aug 03 17:48:41 2018 +0200
@@ -177,8 +177,12 @@
 	stanza.attr.to = "";
 	local ts = gettime();
 	local stamp = datetime.datetime(ts);
-	stanza:tag("delay", {xmlns = "urn:xmpp:delay", from = module.host, stamp = stamp}):up(); -- XEP-0203
-	stanza:tag("x", {xmlns = "jabber:x:delay", from = module.host, stamp = datetime.legacy()}):up(); -- XEP-0091 (deprecated)
+	stanza:tag("delay", { -- XEP-0203
+		xmlns = "urn:xmpp:delay", from = module.host, stamp = stamp
+	}):up();
+	stanza:tag("x", { -- XEP-0091 (deprecated)
+		xmlns = "jabber:x:delay", from = module.host, stamp = datetime.legacy()
+	}):up();
 	local entry = { stanza = stanza, timestamp = ts };
 	table.insert(history, entry);
 	while #history > get_historylength(room) do table.remove(history, 1) end