diff mod_http_muc_log/mod_http_muc_log.lua @ 4589:45ab9152a51c

mod_http_muc_log: Add some spacing around code for readability
author Kim Alvefur <zash@zash.se>
date Tue, 15 Jun 2021 17:19:25 +0200
parents 1890115b2773
children 3145823992cb
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Tue Jun 15 12:35:17 2021 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Jun 15 17:19:25 2021 +0200
@@ -316,6 +316,7 @@
 		local subject = item:get_child_text("subject");
 		local verb = nil;
 		local lang = body_tag and body_tag.attr["xml:lang"] or item.attr["xml:lang"];
+
 		if subject then
 			verb, body = "set the topic to", subject;
 		elseif body and body:sub(1,4) == "/me " then
@@ -325,7 +326,9 @@
 			verb = item.attr.type == "unavailable" and "has left" or "has joined";
 			lang = "en";
 		end
+
 		local oob = use_oob and item:get_child("x", "jabber:x:oob");
+
 		if body or verb or oob then
 			local line = {
 				key = key;
@@ -346,6 +349,7 @@
 			end
 			logs[i], i = line, i + 1;
 		end
+
 		first = first or key;
 		last = key;
 	end