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 >
Wrap
Text File
|
1993-12-27
|
2KB
|
70 lines
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name : KID0001.MOD Mod Author: KID 1@1 ELITEnet │
│ Difficulty : █▒▒▒▒▒▒▒▒▒ If I can do it, you can. 1@1723 StarTrekNet│
│ WWIV Version : 4.23 1@2 St00PiDnet │
│ Mod Date : 12/19/93 │
│ Files Affected: BBS.C │
│ │
│ Description : Hangup on users who try "//DOS" if they have less than 255 │
└────────────────────────────────────────────────────────────────────────────┘
Well, i got tired of users trying to type "//DOS" when they know they
shouldn't have access to it! welp, on with the mod,
/*********************************************************************/
STEP 1: Back Up That Source, even on this "dink" mod it is possible to screw
up. so remember, if your dog dies, your wife screws around,your car runs out
of gas,your grandma gets run over by a reindeer,etc.., etc..
ah screw it, just kill yourself.
STEP 2: Load up BBS.C
STEP 3:
Key:
+ add
= original line
* change line
in the void mainmenu(void)
= if (strncmp(s,"DEBUG",5)==0) {
= if((s[5]) && (s[5]!=' '))
= debuglevel=s[5]-'0';
= else if(s[6])
= debuglevel=s[6]-'0';
= }
= if ((strcmp(s,"DIREDIT")==0) || (strcmp(s,"DE")==0)) {
= write_inst(INST_LOC_DIREDIT,0,INST_FLAGS_ONLINE);
= sysoplog(get_stringx(1,3));
= dlboardedit();
= }
+ if (strcmp(s,"DOS")==0){ /*Added KID0001.MOD*/
+ hangup=1; /*Added KID0001.MOD*/
+ } /*Added KID0001.MOD*/
= if ((strcmp(s,"EDIT")==0)) {
= if (checkpw()) {
= write_inst(INST_LOC_TEDIT,0,INST_FLAGS_ONLINE);
= nl();
= prt(2,get_string(7));
= input(s1,50);
= if (s1[0]) {
= if ((okansi()) && (thisuser.defed))
= external_edit(s1,"",thisuser.defed-1,500,".",s1,1);
= else
= tedit(s1);
= }
= }
= }
STEP 4: Search for the void dlmainmenu(void)
= /* Anyone commands here */
= if (strcmp(s,"WHO")==0) {
= multi_instance();
= }
+ if (strcmp(s,"DOS")==0) { /*Added for KID0001.MOD*/
+ hangup=1; /*Added for KID0001.MOD*/
+ } /*Added for KID0001.MOD*/
= /* download cosysop checks here */