summaryrefslogtreecommitdiff
path: root/builtin/game/chat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/game/chat.lua')
-rw-r--r--builtin/game/chat.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua
index eb3364d60..e05e83a27 100644
--- a/builtin/game/chat.lua
+++ b/builtin/game/chat.lua
@@ -1075,10 +1075,12 @@ core.register_chatcommand("clearobjects", {
return false, S("Invalid usage, see /help clearobjects.")
end
- core.log("action", name .. " clears all objects ("
+ core.log("action", name .. " clears objects ("
.. options.mode .. " mode).")
- core.chat_send_all(S("Clearing all objects. This may take a long time. "
- .. "You may experience a timeout. (by @1)", name))
+ if options.mode == "full" then
+ core.chat_send_all(S("Clearing all objects. This may take a long time. "
+ .. "You may experience a timeout. (by @1)", name))
+ end
core.clear_objects(options)
core.log("action", "Object clearing done.")
core.chat_send_all("*** "..S("Cleared all objects."))