]> git.donarmstrong.com Git - debbugs.git/blobdiff - scripts/service
Don't print strange-looking "Usertags are now: ." message when removing all usertags.
[debbugs.git] / scripts / service
index a14691aa1c64b5ae84ad130ecf15898ae24794ed..da6474a48da9d6fc9d52c8997c69b07fbbb55dfc 100755 (executable)
@@ -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) {