home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / PRE412.ZIP / PCFIX.MOD < prev    next >
Text File  |  1990-04-13  |  2KB  |  60 lines

  1. The Warden #1 @6856
  2. Thu Apr 12 07:13:33 1990
  3. 3RE: 1Post Call Ratio...
  4. 3BY: 1Starman #1 @3117
  5.  
  6. 1This is a copy of the mod to fix the post/ratio problem. This is directly as 
  7. 1posted by the author. I have not installed it yet so don't know if it works.
  8.  
  9. 2Tom Holz  11@6856  3(Alias: The Warden)
  10.  
  11. Joe Barry #1 @6905
  12. Sun Apr 01 06:16:52 1990
  13.  
  14. This mod fixes the Post/Call 'bug' in 4.10 - 4.11 & uses less code too, I'll
  15. call this POST.MOD for 4.11
  16.  
  17. Load up XFER.C & then search for int try_to_download
  18.  
  19.  
  20. look at the code & so that you can back IF you want just comment it out like
  21. I've shown below:
  22.  
  23.   ok=1;
  24.   while ((i>0) && (ok) && (!hangup)) {
  25.   /*you could also just delete this*/
  26.   /*  if ((syscfg.req_ratio>0.0001) && (ratio()<syscfg.req_ratio) &&
  27.       ((thisuser.exempt & exempt_ratio)==0)) {
  28.       nl();
  29.       nl();
  30.       sprintf(s,"Your ratio is %-5.3f.  You need a ratio of %-5.3f to download
  31.         ratio(), syscfg.req_ratio);
  32.       pl(s);
  33.       nl(); */      /*end of commented out*/
  34.    if (!ratio_ok()) {      /*ADD this one line here*/
  35.       closedl();
  36.       return(-1);
  37.     }
  38.     tleft(1);
  39.  
  40. So as you can see ALL you have to do is comment out as above & then replace it
  41. with:     if (!ratio_ok()) {
  42.  
  43. While we are on this subject you might want to also show the user his/her's
  44. PCR when they logon, to do this load up BBSUTL.C
  45.  
  46. search for void logon()
  47.  
  48. look at that section for Illegal logons, Mail waiting etc & then add this:
  49.  
  50.   sprintf(s,"%-6.3f",ratio());
  51. print("Your File Ratio: ",s,"");
  52.   sprintf(s,"%-6.3f",syscfg.req_ratio);
  53. print("File Req Ratio : ",s,"");
  54.   sprintf(s,"%-6.3f",post_ratio());
  55. print("Your post/call : ",s,"");
  56.   sprintf(s,"%-6.3f",syscfg.post_call_ratio);
  57. print("Required PCR   : ",s,"");
  58.  
  59. Well thats about it, enjoy! Any problems or questions, you can email me at
  60. 1@6905 Tech Line 609-627-3291