home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / CYBER04.MOD < prev    next >
Text File  |  1995-07-12  |  3KB  |  103 lines

  1. Nighthawk #1 @11109
  2. Sat Jul 08 21:54:59 1995
  3. ┌───────────────────────────────────────────────────────────────────────────┐
  4. │ Mod Name: CYBER04.423       Mod Author: Nighthawk                         │
  5. │ Difficulty: █▒▒▒▒ (Block Copy)    Date: December 23, 1993                 │
  6. │ WWiV Version: 4.23                                                        │
  7. │ Files Affected: BBS.C, MISCCMD.C, FCNS.H                                  │
  8. │ Description: Adds a //WAIT to the Main Menu and Transfer Menu to put the  │
  9. │ BBS on 'hold' for up to 5 minutes.                                        │
  10. └───────────────────────────────────────────────────────────────────────────┘
  11.  
  12. Long Description:
  13.                  I got tired of the board hanging up on people when they're
  14.                  trying to upload a file or batch of files and while they're
  15.                  setting up the files on their end, the board would time out
  16.                  and hang up on them..  This allows them to type //WAIT at
  17.                  either the main or transfer menu and put the BBS on 'hold'
  18.                  for up to 5 minutes... It is abortable with a hit of a key..
  19.  
  20. Disclaimer:  Guaranteed to work or your money back!
  21.  
  22.                        Key:
  23.                         @ = Existing Line
  24.                         - = Delete this line
  25.                         + = Add this line
  26.                         ! = Change this line
  27.  
  28. ─────────────────────────────────────────────────────────────────────────────
  29. -- Load up MISCCMD.C and add this void to the end of it...
  30.  
  31. void hold_bbs(void)               /* Entire void added for CYBER04.423 */
  32. {
  33.   char ch;
  34.   int w, d, e, min;
  35.  
  36.    nl();
  37.    outstr("Would you like to put the BBS on hold? <Maximum of 5 Minutes> :");
  38.     if (yn()) {
  39.      sysoplog("  Put BBS On Hold  ");
  40.      nl();
  41.      ansic(7);
  42.      pl(charstr(76,'─'));
  43.      outstr(charstr(21,' '));
  44.      outstr("Press any key to return to the board\r\n");
  45.      ansic(7);
  46.      pl(charstr(76,'─'));
  47.      d=1; e=1; w=1; min=1;
  48.      outstr("Waiting...");
  49.      while ((w < 3000) && (!hangup)) {
  50.       ch=upcase(inkey());
  51.       if (ch>=1)
  52.        w=3000;
  53.       d++; e++;
  54.       if (e==600) {
  55.        e=1;
  56.        npr("%d",min);
  57.        min++;      }
  58.       if (d==50) {
  59.        d=1;
  60.        outstr("."); }
  61.       delay(100);
  62.       w++;
  63.      }
  64.     }
  65.   }
  66.  
  67. -- Save MISCCMD.C and load up BBS.C and in 'void mainmenu' add the following:
  68.  
  69. @  if (strcmp(s,"WHO")==0) {
  70. @      multi_instance();
  71. @  }
  72. +  if (strcmp(s,"WAIT")==0) {
  73. +        hold_bbs();
  74. @  }
  75. @  if (strcmp(s,"/A")==0) {
  76.  
  77. -- Go down to void dlmainmenu and add the following:
  78.  
  79. @  if (strcmp(s,"/O")==0)
  80. @    hangup=1;
  81. +  if (strcmp(s,"WAIT")==0) {
  82. +      hold_bbs(); }
  83. @  if (strcmp(s,"WHO")==0) {
  84. @      list_who(); }
  85.  
  86. -- Save BBS.C and load up FCNS.H.. Search for misccmd.c and add the following:
  87.  
  88. @ int remoteupload(char *message);
  89. @ int getnetnum(char *netnam);
  90. + void hold_bbs(void);
  91.  
  92. -- Save FCNS.H and compile..
  93.  
  94. -- If you have any problems with this, just drop me a line and any of the
  95. -- following addresses...  Enjoy...
  96.  
  97. Nighthawk
  98. #1 @11109 WWIVNet
  99. #1 @22909 WWIVLink
  100. #1 @2909 IceNet
  101. #1 @2909 IceLink
  102. #1 @1 CyberNet
  103.