home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
STMPMOD.ZIP
/
STIMP01.MOD
next >
Wrap
Text File
|
1992-07-30
|
3KB
|
120 lines
┌────────────────────────────────────────────────────────────────────────┐
│Mod : STIMP01.MOD │
│Version: WWIV 4.20 │
│Author : Stimpy #1 @1002 NuclearArmsNET 442-1601 │
│Description: A simple Personal Tag mod using the User Note in Uedit │
│ so as not to trash the user list. │
│Diffculty: ▓▓░░░░░░░░ │
│Disclaimer: Always backup your source. If you get an incredible urge to │
│ sautee your cat, it's not my fault! │
└────────────────────────────────────────────────────────────────────────┘
= existing line
+ add line
- deleted line
* change line
In UEDIT.C
In void print_data(int un, userrec *u, int lng)
= npr("UpDn: U=%d-%ldk D=%d-%ldk\r\n",u->uploaded,u->uk,
= u->downloaded, u->dk);
= npr("Baud: %u\r\n", u->lastrate);
= }
= if (u->note[0])
* npr("User's Tag: %s\r\n",(u->note));
= if (u->ass_pts)
= npr("Ass : %d\r\n",(u->ass_pts));
= case 'O':
= nl();
* prt(1,"New Tag? ");
= inputl(s,39);
= strcpy(u.note,s);
= write_user(un,&u);
= break;
In DEFAULTS.C
In void print_cur_stat()
= npr("B. Optional lines : %d\r\n",thisuser.optional_val);
= if (thisuser.wwiv_regnum)
= npr("W. WWIV reg num : %ld\r\n",thisuser.wwiv_regnum);
= else
= pl("W. WWIV reg num : <NONE>");
+ npr("O. Personal Tag : %s\r\n",thisuser.note);
= pl("Q. Quit to main menu");
= nl();
= nl();
In void defaults()
= int i,i1,i2,done;
= char s[81],s1[81],s2[81],ch;
= done=0;
= print_cur_stat();
= do {
= nl();
= helpl=4;
= if (okansi()) {
* prt(2,"[Defaults]: (1-9,A-B,W,O,?,Q) : ");
* ch=onek("Q?123456789ABWO");
= } else {
* prt(2,"[Defaults]: (1-7,B,W,O,?,Q) : ");
* ch=onek("Q?1234567BWO");
= }
= switch(ch) {
= case 'Q':
= done=1;
= break;
= case 'W':
= enter_regnum();
= break;
+ case 'O':
+ nl();
+ npr("%s \r\n",thisuser.note);
+ nl();
+ pl("You may now enter your new tag");
+ prt(2,":");
+ inputl(thisuser.note,40);
+ sprintf(s,"Changed Tag to - %s",thisuser.note);
+ sysoplog(s);
+ break;
= }
= } while ((!done) && (!hangup));
=}
In MSGBASE.C
In void inmsg()
= if (fsed) {
= ll=filelength(i5);
= read(i5, (void *) (& (b[l1]) ),ll);
= l1 += ll;
= close(i5);
= } else {
= for (i5=0; i5<curli; i5++)
= addline(b,&(lin[i5*LEN]),&l1);
= }
+ prt(5,"Do you want your Personal Tag displayed? ");
+ if (yn()) /* You can change if (yn()) to if (ny()) if you want it to
default to Yes.*/
+ {
+ addline(b," ",&l1);
+ sprintf(s,"7[1Personal Tag7]7:3 %s",thisuser.note);
+ addline(b,s,&l1);
+ }
= if (b[l1-1]!=26)
= b[l1++]=26;
= savefile(b,l1,&m,aux);
= if (fsed)
= unlink(fnx);
= } else {
Now save and recompile.