home *** CD-ROM | disk | FTP | other *** search
- Tonedef #1 @5479 1-3+5*7[9THe SWiTCH - (919)781-06197]5*3+1-
- Fri Jun 16 13:26:41 1995
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name : TD001.MOD Mod Author: ToneDef │
- │ Difficulty : ██▒▒▒▒▒▒▒▒ 1 @ 1 SilNet │
- │ WWIV Version : 4.24 1 @ 5479 WWIVNet │
- │ Mod Date : 06/05/95 1 @ 7512 FIITAnet │
- │ Files Affected: NEWUSER.C 1 @ 2 CompNet │
- │ Description : Allows it so that new users may leave feedback when they │
- │ input an invalid New User Password. │
- └────────────────────────────────────────────────────────────────────────────┘
-
- ══[ Description ]═════════════════════════════════════════════════════════════
-
- This MOD allows new users to leave feedback to the sysop if they get the NUP
- wrong.
-
- ══[ Disclaimer ]══════════════════════════════════════════════════════════════
-
- Don't complain to me if your board crashes, your hard drive grows legs and
- walks away or the green mother sings the song of chaos. The code in this
- mod should be harmless, but I can't guarantee it will work for you. It
- works on my board and thats all I care about.
-
- ══[ Step 1 ]══════════════════════════════════════════════════════════════════
-
- Please back up your source code. Even the best programmers make mistakes.
-
- ══[ Step 2 ]══════════════════════════════════════════════════════════════════
-
- Insert into NEWUSER.C in the void newuser function,
- replacing the if ((syscfg.newuserpw[0]!=0) && (incom)) { loop.
- NOTE: some lines around the beginning and end of the MOD's part
- have been removed, please use your mind.
-
-
- if ((syscfg.newuserpw[0]!=0) && (incom)) {
- nln(2);
- ok=0;
- i=0;
- do {
- outstr(get_string(563));
- input(s,20);
- if (strcmp(s,syscfg.newuserpw)==0)
- ok=1;
- else {
- sprintf(s1,get_stringx(1,26),s);
- sl1(0,s1);
- }
- } while ((!ok) && (!hangup) && (i++<4));
- /*BEGIN TD001.MOD*/
- if (!ok) {
- npr("6Do you want to leave feedback to the SysOp? (Y/n)0");
- if (ny()) {
- if (curatr!=7)
- reset_colors();
- nl();
- npr("1Your Name: 0");
- mpl(30);
- input(s,30);
- if (!(s[0]==0)) {
- strcpy(thisuser.name,s);
- usernum=finduser(s);
- strcpy(irt,"Bad NUP Feedback");
- irt_name[0]=0;
- nl();
- }
- email(1,0,1,0);
- }
- nln(2);
- write_inst(INST_LOC_LOGOFF,0,INST_FLAGS_NONE);
- outchr(12);
- if (rip_on())
- random_screen("goodbye");
- outstr(get_string(29));
- pl(ctim(timer()-timeon));
- #ifdef RIPDRIVE
- rd_coff();
- #endif
- existprint(get_string(1036));
- hangup=1;
- }
- }
- /*END TD001.MOD*/
- if (!hangup) {
- input_ansistat();
- if (incom) {
- if (printfile("SYSTEM"))
- sl1(0,get_stringx(1,27));
- pausescr();
- if (printfile("NEWUSER"))
- sl1(0,get_stringx(1,28));
- }
-
-
- ══[ Step 3 ]══════════════════════════════════════════════════════════════════
-
- Save your source and compile. You're done...check it out.
-
- ══[ Credits ]═════════════════════════════════════════════════════════════════
-
- ToneDef
- 1 @ 1 SilNet
- 1 @ 5479 WWIVNet
- 1 @ 7512 FIITANet
- 1 @ 2 CompNet
-
- ══[ END ]═════════════════════════════════════════════════════════════════════
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-