File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1075,10 +1075,12 @@ core.register_chatcommand("clearobjects", {
1075
1075
return false , S (" Invalid usage, see /help clearobjects." )
1076
1076
end
1077
1077
1078
- core .log (" action" , name .. " clears all objects ("
1078
+ core .log (" action" , name .. " clears objects ("
1079
1079
.. 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
1082
1084
core .clear_objects (options )
1083
1085
core .log (" action" , " Object clearing done." )
1084
1086
core .chat_send_all (" *** " .. S (" Cleared all objects." ))
You can’t perform that action at this time.
0 commit comments