home *** CD-ROM | disk | FTP | other *** search
- Apollo #1 @11138
- Sun Jun 25 22:41:13 1995
- ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
- │ Mod Name: Edit11.424 Mod Authors: Editor 149 │
- │ Difficulty: ██▒▒▒▒▒▒▒▒(1.5/10) @11138.WWIVNet │
- │ WWIV Version: v4.24 @2939 TERRANet, IceNet, SierraLink │
- │ Date: 08/18/94 @2938 CyberNet │
- │ Files Affected: UTILITY.C │
- │ Description: Enables External Event to be run by ERRORLEVEL from main │
- │ BBS Batch File │
- └─────────────────────────────────────────────────────────────────────────┘
-
- Extended Description:
- The code was partially there, but not implemented, and I found that for
- many things that I do in the External event batch file I really needed
- both instances closed down, so I added this to my source code. If the
- name for the external event is set to nothing, but the time is set to
- anything but 0:00, the BBS will exit with an ERRORLEVEL of EVENT_LEVEL,
- which is 4 (unless you changed it) on instance 1, and an errorlevel of
- oklevel (usually 0) for all other instances. I then test for the errorlevel
- in WWIV1.BAT and run EXTERNAL.BAT.
-
- Copyright Disclaimer:
- (c) 1995 Editor a.k.a #149@Retreat of the Gods (209) 537-2808
- This mod is written for use by REGISTERED WWIV SysOps, as they are the only
- ones who should have the source code. SysOps may freely upload this mod to
- any BBS or online service provided it is not edited in any way except to
- remove messge headers and/or taglines. Shareware CDROM vendors are prohibited
- from distributing this mod without EXPRESS WRITTEN CONSENT from the author &
- Wayne Bell, Author of WWIV BBS Software.
- Parts of the code shown in this mod are:
- Copyright (C) 1988-1993 by Wayne Bell.
-
- BACKUP your source
-
- LEGEND:
- = old code, Search for this
- + new code
- - Remove or comment out this line
-
- Open: UTILITY.C
- Find: void run_event(void)
- = if ((do_event) && (syscfg.executetime)) {
- -/* do_event=0; Removed for Edit11.424 */
- = nl();
- = pl(get_string(920));
- = nl();
- = if (syscfg.executestr[0]) {
- = if (instance==1) {
- = holdphone(1);
- = shrink_out(syscfg.executestr,0,0,0,1);
- = /* run_external(syscfg.executestr); */
- = holdphone(0);
- = }
- + } else { /* Edit11.424 */
- + if (instance==1) { /* Edit11.424 */
- + holdphone(1); /* Edit11.424 */
- + end_bbs(EVENT_LEVEL); /* Edit11.424 */
- + do_event=0; /* Edit11.424 */
- + holdphone(0); /* Edit11.424 */
- + } else { /* Edit11.424 */
- + holdphone(1); /* Edit11.424 */
- + end_bbs(oklevel); /* Edit11.424 */
- + holdphone(0); /* Edit11.424 */
- + } /* Edit11.424 */
- + } /* Edit11.424 */
- + read_status(); /* Edit11.424 */
- -/* read_status();
- - } else
- - end_bbs(oklevel); Removed for Edit11.424 */
- = }
- = clrscrb();
-
-
- Done.
-
- Save, Recompile and run.
- As you can see, it's very easy and you only have to change one file!
-
- Editor
-