Skip to content
Snippets Groups Projects
Commit fedbbc88 authored by est31's avatar est31
Browse files

Add reason to kicked log message and use present tense

parent 1cb40452
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment