home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / UTIL / WWIVE / MYWIVE.ZIP / GMESH13.MOD < prev    next >
Text File  |  1993-01-25  |  3KB  |  81 lines

  1. ┌────────────────────────────────────────────────────────────────────────┐
  2. │Mod : GMESH13.MOD                                                       │
  3. │Version: WWIV 4.20e                                                     │
  4. │Author : Gilgamesh #1 @4104 NuclearNET 442-1601                         │
  5. │Description: External Chat Call                                         │
  6. │Diffculty: ▓░░░░░░░░░                                                   │
  7. │Disclaimer: Always backup your source. If you get an incredible urge to │
  8. │            sautee your cat, it's not my fault!                         │
  9. └────────────────────────────────────────────────────────────────────────┘
  10.  
  11. This mod reassigns the usuage of the New User Event in INIT. If you
  12. don't want to do that, or are currently using that event, read the
  13. note at the bottom of this mod.
  14.  
  15.  
  16. In BBSUTL.C replace the void reqchat() with the one below.
  17.  
  18. void reqchat()
  19. {
  20.   int ok;
  21.   char s[81];
  22.  
  23.   nl();nl();
  24.   ok=sysop2();
  25.   if (restrict_chat & thisuser.restrict)
  26.     ok=0;
  27.   if (ok)  {
  28.     prt(1,"Reason 7> ");
  29.     mpl(65);
  30.     inputl(s,70);
  31.     if (s[0]) {
  32.       sprintf(chatreason,"Chat: %s",s);
  33.       nl();
  34.       sysoplog(chatreason);
  35.       for (ok=strlen(chatreason); ok<80; ok++)
  36.     chatreason[ok]=32;
  37.       chatreason[80]=0;
  38.       topscreen();
  39.       nl();
  40.       if (syscfg.newuser_c[0]) {
  41.     stuff_in(s,syscfg.newuser_c,create_chain_file("CHAIN.TXT"),"","","","");
  42.     full_external(s,0,1); }
  43.     }
  44.   }
  45.   if (!ok) {
  46.     pl("1Sysop not available.");
  47.     nl();
  48.     nl();
  49.     npr("1You wanna use feedback instead? ");
  50.     if (yn()){
  51.       strcpy(irt,"Tried Chatting");
  52.       email(1,0,0,0);
  53.     }
  54.   }
  55. }
  56.  
  57. In BBS.C replace the case 'C': in void mainmenu() and in void dlmainmenu()
  58. with the case 'C': below.
  59.  
  60.       case 'C':
  61.     reqchat();
  62.     break;
  63.  
  64. In NEWUSER.C remove the three lines below from the end of the file.
  65.  
  66.     if (syscfg.newuser_c[0]) {
  67.       stuff_in(s,syscfg.newuser_c,create_chain_file("CHAIN.TXT"),"","","","");
  68.       full_external(s,0,1);
  69.  
  70.  
  71. The file CHATPAGE.ZIP goes along with this mod.
  72.  
  73. Make sure to put the CHATPAGE.EXE in your new user event in INIT.
  74.  
  75. If you don't want to use the newuser event to call the chat..you can
  76. use the logon, beginday, or upload event to call it, just make sure
  77. to move the proper 3 lines similar to the 3 above to the correct
  78. place in void reqchat() and to delete them from where they were
  79. originally called.
  80.  
  81. Now save and recompile.