Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
fedbbc88
Commit
fedbbc88
authored
9 years ago
by
est31
Browse files
Options
Downloads
Patches
Plain Diff
Add reason to kicked log message and use present tense
parent
1cb40452
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/game/chatcommands.lua
+6
-3
6 additions, 3 deletions
builtin/game/chatcommands.lua
with
6 additions
and
3 deletions
builtin/game/chatcommands.lua
+
6
−
3
View file @
fedbbc88
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment