From: Chris Lamb Date: Mon, 5 Aug 2019 08:58:22 +0000 (+0100) Subject: Don't print strange-looking "Usertags are now: ." message when removing all usertags. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1cbbfd59595516d508c8edf0e755b2ad496363e5;p=debbugs.git Don't print strange-looking "Usertags are now: ." message when removing all usertags. --- diff --git a/scripts/service b/scripts/service index a14691a..da6474a 100755 --- a/scripts/service +++ b/scripts/service @@ -455,7 +455,11 @@ END } else { print {$transcript} "Usertags were: " . join(" ", @oldtags) . ".\n"; } - print {$transcript} "Usertags are now: " . join(" ", @newtags) . ".\n"; + if (@newtags == 0) { + print {$transcript} "There are now no usertags set.\n"; + } else { + print {$transcript} "Usertags are now: " . join(" ", @newtags) . ".\n"; + } Debbugs::User::write_usertags(\%ut, $user); } } elsif (!$control) {