aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-04-05 04:18:47 +0200
committerest31 <MTest31@outlook.com>2015-04-05 04:18:47 +0200
commitfedbbc8883c1c8252fd8b40023687d953f93d10c (patch)
treea064ca0abbb655806e653a226bd843f2a68fd478 /builtin/game
parent1cb404522f1fd2f856383e10e409048468df0849 (diff)
downloadminetest-fedbbc8883c1c8252fd8b40023687d953f93d10c.tar.gz
minetest-fedbbc8883c1c8252fd8b40023687d953f93d10c.tar.bz2
minetest-fedbbc8883c1c8252fd8b40023687d953f93d10c.zip
Add reason to kicked log message and use present tense
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/chatcommands.lua9
1 files 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