File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 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", {
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." ))
You can’t perform that action at this time.
0 commit comments