Skip to content
Permalink
Browse files

Add reason to kicked log message and use present tense

  • Loading branch information...
est31 committed Apr 5, 2015
1 parent 1cb4045 commit fedbbc8883c1c8252fd8b40023687d953f93d10c
Showing with 6 additions and 3 deletions.
  1. +6 −3 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,
})

})

0 comments on commit fedbbc8

Please sign in to comment.
You can’t perform that action at this time.