fixed validate
authorArt Cancro <ajc@citadel.org>
Tue, 10 Nov 1998 00:43:32 +0000 (00:43 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 10 Nov 1998 00:43:32 +0000 (00:43 +0000)
citadel/routines2.c

index 0c8abf07174240c7de25fb8314ac10722a8948db..d371cb02204905b6520b158a4e6ae75dbea5e6d7 100644 (file)
@@ -427,18 +427,8 @@ void val_user(char *user)
                }
 
        /* now set the access level */
-       do {
-               printf("Access level (? for list): ");
-               a=inkey();
-               if (a=='?') {
-                       printf("list\n");
-                       for (b=0; b<7; ++b)
-                               printf("%d %s\n",b,axdefs[b]);
-                       }
-               a=a-48;
-               } while((a<0)||(a>6));
-       printf("%d\n\n",a);
-       sprintf(cmd,"VALI %s|%d",user,a);
+       ax = intprompt("Access level", ax, 0, 6);
+       sprintf(cmd,"VALI %s|%d",user,ax);
        serv_puts(cmd);
        serv_gets(cmd);
        if (cmd[0]!='2') printf("%s\n",&cmd[4]);