home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / KID0001.423 < prev    next >
Text File  |  1993-12-27  |  2KB  |  70 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name      : KID0001.MOD              Mod Author: KID 1@1 ELITEnet      │
  3. │ Difficulty    : █▒▒▒▒▒▒▒▒▒   If I can do it, you can.    1@1723 StarTrekNet│
  4. │ WWIV Version  : 4.23                                     1@2 St00PiDnet    │
  5. │ Mod Date      : 12/19/93                                                   │
  6. │ Files Affected: BBS.C                                                      │
  7. │                                                                            │
  8. │ Description   : Hangup on users who try "//DOS" if they have less than 255 │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10.  
  11.  Well, i got tired of users trying to type "//DOS" when they know they
  12.  shouldn't have access to it! welp, on with the mod,
  13.  
  14.  /*********************************************************************/
  15.  
  16.  STEP 1: Back Up That Source, even on this "dink" mod it is possible to screw
  17.  up. so remember, if your dog dies, your wife screws around,your car runs out
  18.  of gas,your grandma gets run over by a reindeer,etc.., etc..
  19.  ah screw it, just kill yourself.
  20.  
  21.  STEP 2: Load up BBS.C
  22.  
  23.  STEP 3:
  24.  Key:
  25.  +    add
  26.  =      original line
  27.  *    change line
  28.  
  29.  in the void mainmenu(void)
  30.  
  31. =    if (strncmp(s,"DEBUG",5)==0) {
  32. =      if((s[5]) && (s[5]!=' '))
  33. =    debuglevel=s[5]-'0';
  34. =      else if(s[6])
  35. =    debuglevel=s[6]-'0';
  36. =    }
  37. =    if ((strcmp(s,"DIREDIT")==0) || (strcmp(s,"DE")==0)) {
  38. =      write_inst(INST_LOC_DIREDIT,0,INST_FLAGS_ONLINE);
  39. =      sysoplog(get_stringx(1,3));
  40. =      dlboardedit();
  41. =    }
  42. +    if (strcmp(s,"DOS")==0){  /*Added KID0001.MOD*/
  43. +    hangup=1;                 /*Added KID0001.MOD*/
  44. +    }                         /*Added KID0001.MOD*/
  45. =    if ((strcmp(s,"EDIT")==0)) {
  46. =      if (checkpw()) {
  47. =    write_inst(INST_LOC_TEDIT,0,INST_FLAGS_ONLINE);
  48. =    nl();
  49. =    prt(2,get_string(7));
  50. =    input(s1,50);
  51. =    if (s1[0]) {
  52. =      if ((okansi()) && (thisuser.defed))
  53. =        external_edit(s1,"",thisuser.defed-1,500,".",s1,1);
  54. =      else
  55. =        tedit(s1);
  56. =    }
  57. =      }
  58. =    }
  59.  
  60. STEP 4: Search for the void dlmainmenu(void)
  61.  
  62. =  /* Anyone commands here */
  63. =  if (strcmp(s,"WHO")==0) {
  64. =    multi_instance();
  65. =  }
  66. +  if (strcmp(s,"DOS")==0) {    /*Added for KID0001.MOD*/
  67. +    hangup=1;                  /*Added for KID0001.MOD*/
  68. +  }                            /*Added for KID0001.MOD*/
  69. =  /* download cosysop checks here */
  70.