]> andersk Git - moira.git/commitdiff
Deal better with "secure" field in unformatted output.
authorzacheiss <zacheiss>
Wed, 26 Sep 2001 04:49:24 +0000 (04:49 +0000)
committerzacheiss <zacheiss>
Wed, 26 Sep 2001 04:49:24 +0000 (04:49 +0000)
clients/stanley/stanley.c

index 78f3f9372ae24515aae39ed42776166cd6e61bd5..f1662ade46a414f0fb15db1d070e69290372a4bf 100644 (file)
@@ -638,6 +638,8 @@ void show_user_info(char **argv)
 
 void show_user_info_unformatted(char **argv)
 {
+  int status;
+
   printf("Login name:            %s\n", argv[U_NAME]);
   printf("Full name:             %s, %s %s\n", argv[U_LAST], argv[U_FIRST], 
         argv[U_MIDDLE]);
@@ -647,7 +649,10 @@ void show_user_info_unformatted(char **argv)
   printf("Windows Console Shell: %s\n", argv[U_WINCONSOLESHELL]);
   printf("Account is:            %s\n", UserState(atoi(argv[U_STATE])));
   printf("MIT ID number:         %s\n", argv[U_MITID]);
-  printf("Secure:                %s\n", argv[U_SECURE]);
+  status = atoi(argv[U_STATE]);
+  if (status == 0 || status == 2)
+    printf("Secure:                %s secure Account Coupon to register\n",
+          atoi(argv[U_SECURE]) ? "Needs" : "Does not need");
   printf("Comments:              %s\n", argv[U_COMMENT]);
   printf("Last mod by:           %s\n", argv[U_MODBY]);
   printf("Last mod on:           %s\n", argv[U_MODTIME]);
This page took 0.042562 seconds and 5 git commands to generate.