home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
SPV-013A.MOD
< prev
next >
Wrap
Text File
|
1993-12-10
|
5KB
|
138 lines
SPV-013A.MOD [Send SSM's locally or over the network.]
Papa Bear #1 @5079
7Tuesday1, 7December 71, 71993 2 96:200 am
0R: net33: @4056 (via @4061) [08:41 12/10/93]
0R: net33: @4050 (via @4064) [05:33 12/10/93]
0R: net33: @4064 (via @1040) [05:10 12/10/93]
0R: net33: @1040 (via @2050) [13:37 12/09/93]
0R: net34: @2050 [11:35 12/09/93]
0R: net34: @2050 (via @1040) [05:54 12/09/93]
0R: net33: @1040 (via @1114) [04:39 12/09/93]
0R: net33: @5079 [09:05 12/07/93]
4Msg. Status:3▄ 15Please reply!
3 ▀▀▀▀▀▀▀▀▀▀▀▀
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: SPV-013A.MOD Mod Authors: Pâpâ ßêâr (1@5079 WWIV/IceNET) │
│ Difficulty: ▓░░░░░░░░░ [02/08/93] [12/06/93] (1@5050 SEX/JAMDnet) │
│ WWIV Version: 4.23 [any version that uses SSM's] (1@15061 WWIVlink) │
│ Files Affected: FCNS.H BBS.C MISCCMD.C (1@18 CARDNet) │
│ Description: Allows user to send SSM's locally, or over the network. Puts │
│the author's name and node number [if applicable] in the line. │
╞═────────────────────────────────────═╤═───────────────────────────────────═╡
│ StarPort Valhalla [510]522-3583 ASV 14.4kbps 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?]
-----------------------------------------------------------------------------
LONG DESCRIPTION: I had a mod for pre-4.22 that did something like this.
However, it did NOT allow for the multiple networks that 4.22 supports so
easily. A big THANK YOU to Captain EJ (1@5057 WWIVnet) for pointing this out
and giving me the idea to do this.
Now updated for 4.23. Just minor, mostly cosmetic, changes.
-----------------------------------------------------------------------------
STEP 1: ADD ENTIRE FUNCTION TO END OF MISCCMD.C
void send_ssm(void)
{
char s1[81],s2[81],s3[81],*ss;
int i;
unsigned short un,sy;
nl();
npr("Transmit a short message to another user? ");
if (yn()) {
printfile("SSMNOTE.MSG");
npr(": ");
mpl(20);
input(s1,20);
nl();
pl("Checking to see if this is a network address.");
nl();
parse_email_info(s1,&un,&sy);
nl();
if (!sy) {
pl("Not a network address, checking for local user.");
nl();
un=finduser1(s1);
}
if ((!un && !sy) || !un) {
pl("This is not a valid network address, nor a local user.");
return;
} else {
pl("Please enter your short message now, 50 characters!");
npr(": ");
mpl(50);
inli(s1,"",50,1);
if (un && sy) {
if (thisuser.restrict & restrict_net) {
nl();
npr("You are restricted from sending SSM's off %s.",
syscfg.systemname);
return;
} else {
sprintf(s3,"%s ",nam1(&thisuser,usernum,net_sysnum));
strcat(s3,s1);
ssm(un,sy,s3);
nl();
pl("Your short message hass been transmitted over the network!");
nl();
}
} else {
sprintf(s3,"%s says: ",nam(&thisuser,usernum));
strcat(s3,s1);
ssm(un,0,s3);
nl();
pl("Your short message has been transmitted locally");
nl();
}
}
}
}
-----------------------------------------------------------------------------
STEP 2: ADD A FILE TO THE GFILES DIRECTORY. Call it SSMNOTE.MSG. In this
file, describe to the user HOW to use this mod.
In case you're curious, here's my SSMNOTE.MSG file:
EXAMPLE OF MY SSMNOTE.MSG
-------------------------
Enter caller's name (local) or number and node (net).
Examples: For a local message, just enter the users name or number.
For a net message, use the format 131@5079.
END EXAMPLE OF SSMNOTE.MSG
-----------------------------------------------------------------------------
STEP 3: ADD A NEW COMMAND TO BBS.C IN FUNCTION mainmenu(void)
== if (strcmp(s,"/E")==0)
== slash_e();
++ if (strcmp(s,"/M")==0)
++ send_ssm();
== if (strcmp(s,"/O")==0)
-----------------------------------------------------------------------------
STEP 4: ADD A LINE TO FCNS.H IN THE LIST OF FUNCTIONS FOR MISCCMD.C
== void remotenotify(char *name, char *desc);
== int remoteupload(char *message);
== int getnetnum(char *netnam);
++ void send_ssm(void);
==
== /* File: multinst.c */
-----------------------------------------------------------------------------
STEP 5: RECOMPILE THE WHOLE ENCHILADA
That's it. Pretty easy, eh? As always, if you have problems, or if
youeven decide to use this, I'd appreciate some E-Mail!
1-7=3*6>2Pâpâ ßêâr6<3*7=1-0
84StarPort Valhalla ASV 510-522-3583════════════════────────────────────────────
---
6*2FLASH6* 2Energizer bunny arrested for battery!