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=ee73b48c52cedb53381b6c0291693fa1e2a66d2c;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 7e4c205..cdb70bb 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) {