From 8fe5112e074c7090612c109198b57c268234e606 Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Sun, 10 Nov 2024 23:13:27 -0600 Subject: [PATCH] add sanity check to campCount on ^camp --- zone/bot_commands/bot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/bot_commands/bot.cpp b/zone/bot_commands/bot.cpp index ba0ae10dc..da2352a19 100644 --- a/zone/bot_commands/bot.cpp +++ b/zone/bot_commands/bot.cpp @@ -63,7 +63,9 @@ void bot_command_camp(Client *c, const Seperator *sep) ++campCount; } - c->Message(Chat::White, "%i of your bots have been camped.", campCount); + if (campCount) { + c->Message(Chat::White, "%i of your bots have been camped.", campCount); + } } void bot_command_clone(Client *c, const Seperator *sep)