Skip to content

Commit c48bbfd

Browse files
authoredMar 8, 2021
Fix misleading chat messages of /clearobjects (#10690)
1 parent 176f586 commit c48bbfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

Diff for: ‎builtin/game/chat.lua

+5-3
Original file line numberDiff line numberDiff line change
@@ -1075,10 +1075,12 @@ core.register_chatcommand("clearobjects", {
10751075
return false, S("Invalid usage, see /help clearobjects.")
10761076
end
10771077

1078-
core.log("action", name .. " clears all objects ("
1078+
core.log("action", name .. " clears objects ("
10791079
.. options.mode .. " mode).")
1080-
core.chat_send_all(S("Clearing all objects. This may take a long time. "
1081-
.. "You may experience a timeout. (by @1)", name))
1080+
if options.mode == "full" then
1081+
core.chat_send_all(S("Clearing all objects. This may take a long time. "
1082+
.. "You may experience a timeout. (by @1)", name))
1083+
end
10821084
core.clear_objects(options)
10831085
core.log("action", "Object clearing done.")
10841086
core.chat_send_all("*** "..S("Cleared all objects."))

0 commit comments

Comments
 (0)
Please sign in to comment.