summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastor Regex <[email protected]>2025-08-24 13:11:19 -0500
committerJeff Carr <[email protected]>2025-08-24 13:11:19 -0500
commit9c7d2a9c9e92264ff6f5f2ebcc7f54ab49ccefcf (patch)
tree59c8bce319af13eeaa38cfd35d66c3c85304e274
parentb03889101d81b1b6c79f627a22dca7569cb14ad6 (diff)
fix(count-auto): suppress debug output
-rw-r--r--main.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/main.go b/main.go
index 57c91e2..f547a94 100644
--- a/main.go
+++ b/main.go
@@ -46,11 +46,13 @@ func main() {
}
me.chats = chatpb.NewChats()
- if err := me.chats.ConfigLoad(); err != nil {
- badExit(err)
- }
- if verifyUuids(me.chats) {
- me.chats.ConfigSave()
+ if !argv.CountAuto {
+ if err := me.chats.ConfigLoad(); err != nil {
+ badExit(err)
+ }
+ if verifyUuids(me.chats) {
+ me.chats.ConfigSave()
+ }
}
if argv.CountAuto {