home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / SPV-013D.ZIP / SPV-013D.MOD
Encoding:
Text File  |  1995-06-06  |  7.0 KB  |  171 lines

  1. Papa Bear #1 @11579
  2. 7Thursday1, 7June 11, 71995 2 66:250 am
  3. 0R 34 06/05 03:54 WWIVNET 4051->8421
  4. 0R 34 06/04 10:59 WWIVNet 4001->4051
  5. 0R 34 06/04 11:42 WWIVnet 4000->4001
  6. 0R 34 06/03 07:50 WWIVnet ->4000
  7. 0R 34 06/01 10:03 WWIVnet 4001->4000
  8. 0R 34 06/01 17:26 WWIVnet 11579->4001
  9. 0R 34 06/01 06:50 WWIVnet ->11579
  10. 4Msg. Status:9▄ 5Please reply!
  11. 9 ▀▀▀▀▀▀▀▀▀▀▀▀
  12. ┌────────────────────────────A CEREBRUM RELEASE!─────────────────────────────┐
  13. │ Mod Name: SPV-013D.MOD     Mod Authors: Pâpâ ßêâr (1@11579.wwivnet)        │
  14. │ Difficulty: ▓░░░░░░░░░     First : [02/08/93]                              │
  15. │ WWIV Version: 4.24         Last  : [06/01/95]                              │
  16. │ Files Affected: FCNS.H MMENU.C MISCCMD.C                                   │
  17. │ Description: Allows user to send SSM's locally, or over the network.  Puts │
  18. │the author's name and node number [if applicable] on separate line.         │
  19. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  20. │ StarPort Valhalla [   ]   -     ASV 28.8kbps  Home of the SPV mod series!  │
  21. └─────────────────────────────────────═╧═────────────────────────────────────┘
  22.  
  23.                      >>> OFFICIAL WWIV SUPPORT SITE! <<<
  24.  
  25.  Word of Warning:  You installed it, you're responsible! Make back─ups BEFORE
  26.  attempting to install this modification!  Read all text before beginning.
  27. ─────────────────────────────────────────────────────────────────────────────
  28.  LEGEND:
  29.  ==  Original Code [use this to search on]
  30.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  31. ─────────────────────────────────────────────────────────────────────────────
  32.  LONG DESCRIPTION:  I had a mod for pre-4.22 that did something like this.
  33. However, it did NOT allow for the multiple networks that 4.22 supports so
  34. easily.  A big THANK YOU to Captain EJ (1@5057 WWIVnet) for pointing this out
  35. and giving me the idea to do this.
  36.  Now updated for 4.24.
  37.  
  38.  VERSION "B" FEATURES!
  39.  o 99% re-writtten code!
  40.  o Now a full 80 character message can be sent.
  41.  o Displays originating person of the line before message.
  42.  o The proper network name/BBS name is included in the origination line.
  43.  o MUCH more streamlined! Smaller, tigher code!
  44.  o Proper networking/local routing, no more duplicate checks.
  45.  o Now it is abortable at all prompts.
  46.  o No more "double aborts".
  47.  o FULL COLOR SSM's!
  48.  VERSION "C" features:
  49.  o Allows you to send net SSM using the "long" format: 1@5079.wwivnet
  50.  VERSION "D" features:
  51.  o Written for 4.24
  52.  
  53.  -> To upgrade, simply copy the void send_ssm(void) over the old one and
  54.  -> recompile!
  55. ─────────────────────────────────────────────────────────────────────────────
  56. STEP 1:  ADD ENTIRE FUNCTION TO END OF MISCCMD.C
  57.  
  58. void send_ssm(void)
  59. {
  60.   char s1[161],s2[81];
  61.   unsigned short un,sy;
  62.  
  63.   nl();
  64.   npr("5Transmit a Short Message to another user? 0");
  65.   if (yn()) {
  66.     printfile("SSMNOTE.MSG");
  67.     npr("1Address2: 0");
  68.     mpl(30);
  69.     input(s1,30);
  70.     nl();
  71.     if (s1[0]==NULL) {
  72.       pl("6Aborted!0");
  73.       nl();
  74.       return;
  75.     }
  76.     parse_email_info(s1,&un,&sy);
  77.     nl();
  78.     if ((!un && !sy) || !un) {
  79.       pl("6This is not a valid local, nor network, address!0");
  80.       return;
  81.     } else {
  82.       pl("5Please enter your Short Message now, 1805 characters2:0");
  83.       mpl(79);
  84.       inli(s1,"",160,1);
  85.       if (s1[0]==NULL) {
  86.         pl("6Aborted0");
  87.         nl();
  88.         return;
  89.       }
  90.       nl();
  91.       if ((thisuser.restrict & restrict_net) && (sy)) {
  92.         nl();
  93.         npr("3You are restricted from sending SSM's off 2%s3.0",
  94.              syscfg.systemname);
  95.         return;
  96.       } else {
  97.         sprintf(s2,"5The following message is from2: 1%s 3(9%s3)0",
  98.                (sy) ? nam1(&thisuser,usernum,net_sysnum) :
  99.                       nam(&thisuser,usernum),
  100.                (sy) ? net_name :
  101.                       syscfg.systemname);
  102.         ssm(un,sy,s2);
  103.         ssm(un,sy,s1);
  104.         npr("%s",
  105.             (sy) ? "5Your Short Message was sent over the net!0":
  106.                    "5Your Short Message was sent locally!0");
  107.       }
  108.     }
  109.   }
  110. }
  111. ─────────────────────────────────────────────────────────────────────────────
  112. STEP 2: ADD A FILE TO THE GFILES DIRECTORY.  Call it SSMNOTE.MSG.  In this
  113.         file, describe to the user HOW to use this mod.
  114.  
  115.   In case you're curious, here's my SSMNOTE.MSG file:
  116.  
  117. EXAMPLE OF MY SSMNOTE.MSG
  118. ─────────────────────────
  119.  
  120. 5Enter caller's name (local) or number and node (net).0
  121. 3Examples2:8 For a local message, just enter the users name or number.0
  122.           9For a net message, use the format 1131@5079.0
  123.           9You may also use "long format", ie: 1131@5079.wwivnet0
  124.  
  125. 6Press ENTER to abort!0
  126.  
  127. END EXAMPLE OF SSMNOTE.MSG
  128. ─────────────────────────────────────────────────────────────────────────────
  129. STEP 3:  ADD A NEW COMMAND TO MMENU.C IN FUNCTION void mainmenu(void)
  130.  
  131. ==  if (strcmp(s,"/E")==0)
  132. ==    slash_e();
  133. ++  if (strcmp(s,"/M")==0)                                    // SPV-013D.MOD
  134. ++    send_ssm();                                             // SPV-013D.MOD
  135. ==  if (strcmp(s,"/N")==0)
  136. ==    nscan(cursub);
  137. ─────────────────────────────────────────────────────────────────────────────
  138. STEP 4:  ADD A LINE TO FCNS.H IN THE LIST OF FUNCTIONS FOR MISCCMD.C
  139.  
  140. == void remotenotify(char *name, char *desc);
  141. == int remoteupload(char *message);
  142. == int getnetnum(char *netnam);
  143. ++ void send_ssm(void);                                       // SPV-013D.MOD
  144. ==
  145. == /* File: multinst.c */
  146. ─────────────────────────────────────────────────────────────────────────────
  147. STEP 5:  RECOMPILE THE WHOLE ENCHILADA
  148.  
  149.   That's it.  Pretty easy, eh?  As always, if you have problems, or if
  150. youeven decide to use this, I'd appreciate some E─Mail!
  151.  
  152.     This mod is copyright 1993-1995 by Tracy Baker, aka Papa Bear, and is
  153.  distributed as freeware.  Permission is granted to distribute and post this
  154.    mod on BBS systems and online services, provided no alterations are made
  155.   (removal of message headers/taglines allowed).  This mod may contain some
  156.   parts of WWIV source code, which is copyright 1988─1994 by Wayne Bell and
  157.     licensed only to registered users of WWIV.  Use of WWIV source without
  158.      registration constitutes a license violation and could lead to legal
  159.                         prosecution and certain doom.
  160.    Shareware distributors and CD─ROM publishers may not distribute this mod
  161.  without express written permission of the Author or WWIV Software Services.
  162.  
  163. 7-9=1*6>2Pâpâ ßêâr6<1*9=7-0
  164.  
  165. 8311579.wwivnet1· 2 ╪╫9≡8║7⌐¬4¥5╓╥╖1·     ·     2▒1 ·   2▒       3(510)522-35831    ·
  166. 732.sexnet  1∙   6 ·0░░▒▒▓▓6∞0▓▒░6·2 StarPort   ▒   ▒ 2 ▒1  ·2▒   ▒ ▒1 ·2 ▒   ▒1  ·2▒     ▒ 1·
  167. 6315061.wwivlink    0 ████1 ·     .       2  ▒ ▒  ▒ ▒  ▒1 · 2▒▒▒  ▒ ▒  ▒   ▒    ▒ ▒
  168. 535079.icenet 1.  .  0 │└6·0└6· 1     ∙         2 ▒  ▒   ▒ ▒▒▒ ▒ ▒ ▒1 ·2 ▒ ▒▒▒ ▒▒▒ ▒1 ∙ 2▒
  169. ---
  170. 5Jury: A group chosen to decide who has the best lawyer.
  171.