home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / WWIVMOD.ZIP / ECHAT.MOD < prev    next >
Encoding:
Text File  |  1992-04-20  |  5.9 KB  |  191 lines

  1. Dream Child #26 @7474
  2. Sat Apr 18 12:54:12 1992
  3. 5[7MS5] 7: 5[2Reply Not Needed.5]
  4. 3-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  5.  
  6. Satan3.mod
  7.  
  8. Done by unfamous SATAN
  9.  
  10. This is a lsd mod which I rewrote to have configuarable emergency chat password
  11. so that uses who hav the same bbs will not know the emergency chat password
  12. so that you will not be bugged by users
  13.  
  14. + Add Line
  15. - Delete Line
  16. * Exsisting Line
  17. ! Modify Line
  18.  
  19. ---------------------------------------------------------------------------
  20. STEP ONE
  21. File : BBSUTL.C
  22. Function : void reqchat()
  23. --------------------------------------------------------------------------
  24.  
  25. *        pl("Chat call turned ON.");
  26. *        nl();
  27. *      }
  28. *    }
  29. *  } else {
  30. !        prt(1,"Sysop is not available. Is this an EMERGENCY?");
  31. +        if (yn()) {
  32. +        prt(1,"Enter EMERGENCY Chat password :");
  33. +        mpl(7);
  34. +        input(s,7);
  35. +       if (strcmp(s,"syscfg.chatpw")==0) { /* Insert here your chat password */
  36. +        nl(); nl();
  37. +        prt(1,"Paging Sysop...");nl();nl();
  38. +        noise(200,1800,100,1,15);prt(1,"."); /* Well... Change This to */
  39. +        noise(200,1800,100,1,15);prt(2,""); /* Your Handle, Don't keep */
  40. +        noise(200,1800,100,1,15);prt(3,"."); /* mine please! */
  41. +        noise(200,1800,100,1,15);prt(4,".");
  42. +        noise(200,1800,100,1,15);prt(5,"");
  43. +        noise(200,1800,100,1,15);prt(6,".");
  44. +        noise(200,1800,100,1,15);prt(7,".");
  45. +        noise(200,1800,100,1,15);prt(8,".");
  46. +        noise(200,1800,100,1,15);prt(9,".");
  47. +        noise(200,1800,100,1,15);prt(1,".");
  48. +        noise(200,1800,100,1,15);prt(2,".");nl();
  49. +        noise(200,1800,100,1,15);prt(3,".");
  50. +        noise(200,1800,100,1,15);prt(4,".");
  51. +        noise(200,1800,100,1,15);prt(5,".");
  52. +        noise(200,1800,100,1,15);prt(6,".");
  53. +        noise(200,1800,100,1,15);prt(7,".");
  54. +        noise(200,1800,100,1,15);prt(8,".");
  55. +        noise(200,1800,100,1,15);prt(9,".");
  56. +        noise(200,1800,100,1,15);prt(1,".");
  57. +        noise(200,1800,100,1,15);prt(2,".");
  58. +        noise(200,1800,100,1,15);prt(3,".");
  59. +        noise(200,1800,100,1,15);prt(4,".");
  60. +        nl();nl();
  61. +        pl("If The SysOp is Around, He will Answer.");
  62. +        } else
  63. +          pl("Wrong Password!");
  64. +        } else {
  65. +        nl();nl();
  66. !        pl("The SysOp isn't here, use Feedback instead.");
  67. !        nl();
  68. !        strcpy(irt,"Tried Paging.");
  69. !        byline[0]=0; /* if you have byline */
  70. !        imail(1,0);
  71. !    }
  72. *  }
  73. *}
  74.  
  75.  
  76.  
  77. ---------------------------------------------------------------------------
  78. STEP TWO
  79. File : BBSUTL.C
  80. Add complete void
  81. --------------------------------------------------------------------------
  82.  
  83. + void input_chatpw()
  84. + {
  85. +   int ok;
  86. +   char s[81];
  87. +
  88. +   do {
  89. +     nl();
  90. +     npr("3Please Enter New Chat Password");
  91. +     outstr(":");
  92. +     mpl(20);
  93. +     inputl(s,20);
  94. +
  95. +     ok=1;
  96. +     if (strlen(s)<3)
  97. +       ok=0;
  98. +   } while ((!ok) && (!hangup));
  99. +   if (ok)
  100. +     strcpy(syscfg.chatpw,s);
  101. +   else
  102. +     npr("3Password Not Changed.");
  103. + }
  104.  
  105. ---------------------------------------------------------------------------
  106. STEP THREE
  107. File : BBS.C
  108. Function:getcaller();
  109. --------------------------------------------------------------------------
  110.  
  111. +     case '!':         /* or any other unused case */
  112. +       if (ok_local()) input_chatpw();
  113. +       break;
  114.  
  115. ---------------------------------------------------------------------------
  116. STEP THREE
  117. File : VARDEC.H
  118. --------------------------------------------------------------------------
  119.  
  120. /* STATIC SYSTEM INFORMATION */
  121. typedef struct {
  122.     char            newuserpw[21],          /* new user password */
  123. +                       chatpw[21],             /* Emergency chat password */
  124.                         systempw[21],           /* system password */
  125.             msgsdir[81],            /* path for msgs directory */
  126.             gfilesdir[81],          /* path for gfiles dir */
  127.             datadir[81],            /* path for data directory */
  128.             dloadsdir[81],          /* path for dloads dir */
  129.             ramdrive,               /* drive for ramdisk */
  130.             tempdir[81],            /* path for temporary directory */
  131.  
  132.  
  133.  
  134. ---------------------------------------------------------------------------
  135. STEP THREE
  136. File : Any
  137. --------------------------------------------------------------------------
  138.  
  139.  
  140. add intire void
  141.  
  142.     void noise(int startfreq, int endfreq, int step, int paws, int repeats)
  143. /*
  144.  * This function takes several parameters. Depending on these parameters,
  145.  * a noise will be made locally. We use this for such things as newuser
  146.  * logon, file access, chain access, logoff, chat, etc.
  147.  *
  148.  * The parameters are as follows:
  149.  *
  150.  * startfreq : The start frequency in hertz.
  151.  * endfreq   : The end frequency in hertz.
  152.  * step      : The number of hertz to step between startfreq and endfreq.
  153.  *             This number should be negative if endfreq is less than
  154.                              startfreq.
  155.  * paws      : The paws in milliseconds between repetitions.
  156.  * repeats   : The number of times to repeat the entire sequence.
  157.  *
  158.  * ANSI not required.
  159.  *
  160.  */
  161. {
  162.   int i,x,z;
  163.  
  164.   x=0;
  165.   if (startfreq<endfreq) {
  166.     do {
  167.       z=startfreq;
  168.       do {
  169.         sound(z);
  170.         delay(paws);
  171.         z+=step;
  172.       } while ((z <= endfreq) && (!hangup));
  173.       x++;
  174.     } while((x < repeats) && (!hangup));
  175.   } else {
  176.     do {
  177.       z=startfreq;
  178.       do {
  179.         sound(z);
  180.         delay(paws);
  181.         z+=step;
  182.       } while ((z >= endfreq) && (!hangup));
  183.       x++;
  184.     } while((x < repeats) && (!hangup));
  185.   }
  186.   nosound();
  187.  
  188.  1[ 2The 6P5aradox 2* 1(714) 820 - 7360 3@77474 2* 5SNARF3able 2* 1SysOp Auto-Validation 1]
  189.  1[  7ZBS2/7Radio Drama Net subtype 37474 2* 5Rialto, Ca 2* 3SysOp 2: 4Slartibartfast1  ]
  190.  1[ 34.20e 1modded 2* 660 5minutes a day 2- 5It would be 6masochistic 5not to call!!! 1]
  191.