home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
SPV-059.MOD
< prev
next >
Wrap
Text File
|
1995-05-04
|
6KB
|
117 lines
Papa Bear #1 @11579
7Wednesday1, 7May 31, 71995 2126:220 am
0R 34 05/03 10:04 WWIVnet 4001->4000
0R 34 05/01 16:43 WWIVnet 11579->4001
0R 34 05/03 00:22 WWIVnet ->11579
4Msg. Status:9▄ 5Please reply!
9 ▀▀▀▀▀▀▀▀▀▀▀▀
┌────────────────────────────A CEREBRUM release!─────────────────────────────┐
│ Mod Name: SPV-059.MOD Mod Authors: Pâpâ ßêâr (11579.wwivnet) │
│ Difficulty: ▓░░░░░░░░░ First ----- [05/02/95] (15061.wwivlink) │
│ WWIV Version: 4.23 Last ------ [00/00/00] (2.sexnet) (11.norcalnet)│
│ Files Affected: LILO.C FCNS.H (5079.icenet) │
│ Description: Forces a user into reading their E-Mail, IF it was sent from │
│ a user with a specified SL or higher. │
╞═────────────────────────────────────═╤═───────────────────────────────────═╡
│ StarPort Valhalla [510]522-3583 ASV 28.8kbps Home of the SPV mod series! │
└─────────────────────────────────────═╧═────────────────────────────────────┘
Word of Warning: You installed it, you're responsible! Make back-ups BEFORE
attempting to install this modification! Read all text before beginning.
─────────────────────────────────────────────────────────────────────────────
LEGEND:
== Original Code [use this to search on]
++ Add this Line [mods ALWAYS add stuff, don't they?]
-+ Change this line
─────────────────────────────────────────────────────────────────────────────
LONG DESCRIPTION: I won a government contract to set up a WWIV BBS for the
local Navy base. In the process of determining what they wanted in the way
of modifications, they wanted the capability to force read E-Mail on users if
the mail was sent from like the Commanding Officer.
So here it is... If you wanna set it up for something other than SL, just
let me know!
─────────────────────────────────────────────────────────────────────────────
STEP 1: Make this change in LILO.C, void logon(void)
== create_chain_file();
== rsm(usernum,&thisuser,1);
-+ if (thisuser.waiting) { // SPV-059 added {
++ if (CheckForceEmail()) // SPV-059
== readmail();
++ else { // SPV-059
++ prt(5,get_string(377)); // SPV-059
++ if (yn()) // SPV-059
++ readmail(); // SPV-059
++ } // SPV-059
++ } // SPV-059
== }
== nscandate=thisuser.daten;
─────────────────────────────────────────────────────────────────────────────
STEP 2: Add this function to the end of LILO.C:
#define FORCE_SL 255 // NOTE
// SPV-059 add block start
unsigned char CheckForceEmail(void)
{
mailrec Mail;
userrec User;
int File,NumberOfMails,MaxWaiting,i;
unsigned char Done=0;
File=open_email(0);
NumberOfMails=filelength(File)/sizeof(mailrec);
for (i=0; (i<NumberOfMails) && (!Done); i++) {
sh_lseek(File,((long)(i))*(sizeof(mailrec)), SEEK_SET);
sh_read(File,(void *)(&Mail),sizeof(mailrec));
if ((Mail.tosys==0) && (Mail.touser==usernum)) {
if (Mail.fromsys==0) {
read_user(Mail.fromuser,&User);
if (User.sl>=FORCE_SL)
Done=1;
}
}
}
File=sh_close(File);
return(Done);
}
// SPV-059 add block end
NOTE: Set this #define the the MINIMUM SL that you want... SO if you have
CoSysOps with 100 and you want them to be able to send forced E-Mail
set this to 100.
─────────────────────────────────────────────────────────────────────────────
STEP 3: Add function prototype to FCNS.H
== void logon(void);
== void logoff(void);
++ unsigned char CheckForceEmail(void); // SPV-059
==
== /* File: misccmd.c */
== void read_automessage(void);
─────────────────────────────────────────────────────────────────────────────
STEP 4: Recompile
─────────────────────────────────────────────────────────────────────────────
E-Mail me if you like this one... The external UEDIT2 is coming along
fantastically!
This mod is copyright 1993,1994 by Tracy Baker, aka Papa Bear, and is
distributed as freeware. Permission is granted to distribute and post this
mod on BBS systems and online services, provided no alterations are made
(removal of message headers/taglines allowed). This mod may contain some
parts of WWIV source code, which is copyright 1988-1994 by Wayne Bell and
licensed only to registered users of WWIV. Use of WWIV source without
registration constitutes a license violation and could lead to legal
prosecution and certain doom.
Shareware distributors and CD-ROM publishers may not distribute this mod
without express written permission of the Author or WWIV Software Services.
1-7=3*6>2Pâpâ ßêâr6<3*7=1-0
8311579.wwivnet1· 2 ╪╫9≡8║7⌐¬4¥5╓╥╖1· · 2▒1 · 2▒ 3(510)522-35831 ·
732.sexnet 1∙ 6 ·0░░▒▒▓▓6∞0▓▒░6·2 StarPort ▒ ▒ 2 ▒1 ·2▒ ▒ ▒1 ·2 ▒ ▒1 ·2▒ ▒ 1·
6315061.wwivlink 0 ████1 · . 2 ▒ ▒ ▒ ▒ ▒1 · 2▒▒▒ ▒ ▒ ▒ ▒ ▒ ▒
535079.icenet 1. . 0 │└6·0└6· 1 ∙ 2 ▒ ▒ ▒ ▒▒▒ ▒ ▒ ▒1 ·2 ▒ ▒▒▒ ▒▒▒ ▒1 ∙ 2▒
---
5Jury: A group chosen to decide who has the best lawyer.