home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / MT14.ZIP / MT14.MOD < prev   
Encoding:
Text File  |  1995-06-11  |  3.1 KB  |  78 lines

  1. Maintech #1 @4203
  2. Tue Jun 06 23:11:55 1995
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │ Mod Name: MT14.mod                      Mod Author:/\/\ainTech 1@4203      │
  5. │ Difficulty: .5 on a 1-10 Scale          Date: 5/6/95                       │
  6. │ WWIV Version: 4.24                      Original credit: Frank Reid        │
  7. │ Description: Improved //QSCAN function; resets qscan pointers as read or   │
  8. │ unread on any one sub or on all of them.                                   │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. ╔════════════════════════════════════════════════════════════════════════════╗
  11. ║   This mod is copyright 1992, 1995 by D. Thompson, aka Maintech, and is    ║
  12. ║   distributed as freeware.  Permission is granted to distribute and post   ║
  13. ║   this mod on BBS systems and online services, provided no alterations     ║
  14. ║   are made (removal of message headers/taglines allowed).  This mod may    ║
  15. ║   contain some parts of WWIV source code, which is copyright 1988-1995 by  ║
  16. ║   Wayne Bell and licensed only to registered users of WWIV.  Use of WWIV   ║
  17. ║   source without registration constitutes a license violation and could    ║
  18. ║   lead to legal prosecution  and certain doom.                             ║
  19. ║                                                                            ║
  20. ║   Shareware distributors and CD-ROM publishers may not distribute this mod ║
  21. ║   without express written permission of the Author or WWIV Software        ║
  22. ║   Services.  Distribution should be to Registered WWIV sysops only.        ║
  23. ╚════════════════════════════════════════════════════════════════════════════╝
  24.  
  25.  
  26. Disclaimer: It works here, it should work there too.
  27.  
  28. Load up mmenu.c, open void mainmenu, and replace the //QSCAN function with this
  29. one.
  30.  
  31.  
  32.   if (strcmp(s,"QSCAN")==0) {
  33.      tmp_disable_conf(1);
  34.     nl();
  35.     prt(5,"Mark messages as 3(2R3)5EAD, 3(2U3)5NREAD,0 or 3(2Q3)5uit? ");0
  36.     ch=onek("QUR");
  37.     switch(ch) {
  38.       case 'R':
  39.         nl();
  40.         prt(2,"Reset QScan pointers on ALL subs as 5READ? ");0
  41.         if (yn()) {
  42.           for (i=0; i<max_subs; i++)
  43.             qsc_p[i] = status.qscanptr-1L; 
  44.           nl();
  45.           pl(get_string(25));
  46.           nl();
  47.         } else {
  48.           nl();
  49.             qsc_p[usub[cursub].subnum]=status.qscanptr-1L;
  50.           nl();
  51.           npr("2Messages on 3%s 2marked as 1READ.\r\n",0
  52.              subboards[usub[cursub].subnum].name);
  53.         }
  54.         tmp_disable_conf(0); 
  55.         break;
  56.       case 'U':
  57.         nl();
  58.         prt(2,"Reset QScan pointers on ALL subs to 5UNREAD? ");0
  59.         if (yn()) {
  60.           for (i=0; i<max_subs; i++)
  61.             qsc_p[i] = 0;
  62.           nl();
  63.           pl(get_string(25));
  64.           nl();
  65.         } else {
  66.           nl();
  67.             qsc_p[usub[cursub].subnum]=0;
  68.           npr("2Messages on 3%s 2marked as 1UNREAD.\r\n",0
  69.              subboards[usub[cursub].subnum].name);
  70.         }
  71.         tmp_disable_conf(0);
  72.         break;
  73.       case 'Q':
  74.         tmp_disable_conf(0);
  75.         break;
  76.     }
  77.    }
  78.