From fedbbc8883c1c8252fd8b40023687d953f93d10c Mon Sep 17 00:00:00 2001
From: est31 <MTest31@outlook.com>
Date: Sun, 5 Apr 2015 04:18:47 +0200
Subject: [PATCH] Add reason to kicked log message and use present tense

---
 builtin/game/chatcommands.lua | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index 210117884..3b3c674f2 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -749,7 +749,11 @@ core.register_chatcommand("kick", {
 		if not core.kick_player(tokick, reason) then
 			return false, "Failed to kick player " .. tokick
 		end
-		core.log("action", name .. " kicked " .. tokick)
+		local log_reason = ""
+		if reason then
+			log_reason = " with reason \"" .. reason .. "\""
+		end
+		core.log("action", name .. " kicks " .. tokick .. log_reason)
 		return true, "Kicked " .. tokick
 	end,
 })
@@ -804,5 +808,4 @@ core.register_chatcommand("last-login", {
 		end
 		return false, "Last login time is unknown"
 	end,
-})
-
+})
\ No newline at end of file
-- 
GitLab