home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / REGISTER.MOD < prev    next >
Text File  |  1990-04-11  |  2KB  |  77 lines

  1. Pc Guru #1 @3450
  2. Sun Apr 08 05:35:42 1990
  3.             Logon Registration Mod
  4.  
  5. Every board but WWIV seems do one thing different at logon.  If you type in
  6. a name, and you are not a member of the system, other bbs's then ask if you
  7. mistyped the name, or if you want to register on the system.  This mod adds
  8. that feature to WWIV bbs's.
  9.  
  10.                         PC Guru 1@3450
  11.  
  12.  
  13. ---------------------------------------------------------------------------
  14.  
  15. Load up 'BBSUTL.C'
  16.  
  17.  
  18.  
  19. void getuser()                    /* Search for */
  20. {
  21.   char s[81],s2[81],s4[81],s5[5],ch;        /* Add ch */
  22.  
  23.     .
  24.     .
  25.     .
  26.       if (usernum==-1) {            /* Existing */
  27.     newuser();
  28.         ok=1;
  29.       } else
  30.     if (usernum==0) {            /* Search for */
  31.       if (net_only)
  32.         nl();
  33.       else
  34.             pl("Unknown user.");              /* Delete this line */
  35.  
  36.         /************** MOD *************************/
  37.     prt(2,"         Name not found in User List"); nl();
  38.     prt(2,"        R)etry logon"); nl();
  39.         prt(2,"         L)ogon as a NEW user"); nl();
  40.     prt(2,"         G)oodbye! Log me off!"); nl();
  41.     prt(5,"      Your choice (R,N,G) ?");
  42.         ch=onek("RNGN");                /* N is for network */
  43.         switch (ch) {
  44.                         case 'N':
  45.                         case 'R':
  46.                break;
  47.                         case 'L':
  48.                newuser();
  49.                ok=1;
  50.                break;
  51.             case 'G':
  52.                hangup=1;
  53.                ok=0;
  54.                break;
  55.  
  56.             }
  57.  
  58.  
  59.     /**********************END MODIFICATION*****************/
  60.  
  61.     } else                        /* Existing code */
  62.       if (usernum==-2) {
  63.  
  64. -----------------------------------------------------------------------------
  65.  
  66. The case 'N' was added in case the network doesn't connect right at the first
  67. NN: prompt.  Otherwise it would be stuck in the look sending N N N until it
  68. gave up and disconnected.
  69.  
  70.                         PC Guru 1@3450
  71.  
  72.  
  73. Also, for those of you who have my previous mods, and have tried to send
  74. netmail:  My node number was first @3458, then @3655, and now, it is finally,
  75. at @3450 to stay!
  76.  
  77.