home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / APOLLO07.423 < prev    next >
Text File  |  1993-12-23  |  4KB  |  92 lines

  1. Apollo07.423
  2. ``/┤PΘ££Θ`` WWIVnet #1 AT 2938
  3. Sat Dec 18 08:06:06 1993
  4. 0R: net33: @4136 (via @1) [11:44 12/23/93]
  5. 0R: net33: @1 (via @4120) [07:02 12/23/93]
  6. 0R: net33: @4120 [06:19 12/23/93]
  7. 0R: net33: @4062 (via @4064) [05:11 12/23/93]
  8. 0R: net33: @4064 (via @1040) [01:18 12/23/93]
  9. 0R: net33: @1040 (via @2050) [00:38 12/23/93]
  10. 0R: net34: @2050 [22:46 12/22/93]
  11. 0R: net34: @2050 (via @1040) [03:58 12/20/93]
  12. 0R: net34: @2050 (via @1040) [14:41 12/19/93]
  13. 0R: net33: @1040 (via @1042) [15:27 12/19/93]
  14. 0R: net33: @1042 (via @2914) [13:06 12/19/93]
  15. 0R: net33: @2914 (via @2938) [22:47 12/18/93]
  16. 0R: net33: @2938 [08:19 12/18/93]
  17. ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
  18. │ Mod Name: Apollo07.423  Mod Authors: Apollo  1@92938 WWIVNet & BRNet    │
  19. │ Difficulty: ████▒▒▒▒▒▒               1@2939 TARDIS,TERRA,Ice & Mas Nets │
  20. │ WWIV Version: v4.23            Date: 12/11/93                           │
  21. │ Files Affected: UEDIT.C                                                 │
  22. │ Adds the ability for the SysOp to edit the Users password in Uedit.     │
  23. └─────────────────────────────────────────────────────────────────────────┘
  24.  
  25. Special Thanks to the writer of PASSWORD.MOD
  26. His mod worked great, but needed a complete rewrite for 4.23, I also
  27. use the strings available in BBS.STR instead of hardcoding them into
  28. the mod and taking up valuable D-Group space.
  29. Updated to work with 4.23.
  30.  
  31. LEGEND:
  32. = old code, Search for this
  33. + new code
  34. - Remove or comment out this line
  35. > Modified From Virgin Code
  36.  
  37. #include <witty disclaimer>
  38.  
  39. BACKUP your Source
  40.  
  41. Load up: UEDIT.C
  42. Find: void uedit(int usern, int other)
  43. =      prt(2,get_string(266));
  44. =      if ((thisuser.sl==255) || (wfc))
  45. -       ch=onek("ACDEGILMNOPQRSTUXYZ0123456789[]{}/,.?~%:");
  46. +                                            /* Removed for Apollo07.423 */
  47. +        ch=onek("ABCDEGILMNOPQRSTUXYZ0123456789[]{}/,.?~%:");
  48. +                                                        /* Apollo07.423 */
  49. =      else
  50. =        ch=onek("ACDEGILMNOPQRSTUYZ0123456789[]{}/,.?%");
  51. .
  52. .
  53. .
  54. =        case 'A':
  55. =          nl();
  56. =          prt(2,get_string(280));
  57. =          ch1=onek("\rABCDEFGHIJKLMNOP");
  58. =          if (ch1!=13) {
  59. =            ch1-='A';
  60. =            if ((wfc) || (thisuser.ar & (1 << ch1))) {
  61. =              u.ar ^= (1 << ch1);
  62. =              write_user(un,&u);
  63. =            }
  64. =          }
  65. =          break;
  66. +        case 'B':                                       /* Apollo07.423 */
  67. +          nl();                                         /* Apollo07.423 */
  68. +          prt(5,get_string(453));                       /* Apollo07.423 */
  69. +          if (yn()) {                                   /* Apollo07.423 */
  70. +            nl();                                       /* Apollo07.423 */
  71. +            prt(5,get_string(552));                     /* Apollo07.423 */
  72. +            input(s,sizeof(u.pw)-1);                    /* Apollo07.423 */
  73. +            if (s[0]) {                                 /* Apollo07.423 */
  74. +              strcpy(u.pw,s);                           /* Apollo07.423 */
  75. +              write_user(un,&u);                        /* Apollo07.423 */
  76. +              prt(5,get_string(460));                   /* Apollo07.423 */
  77. +            } else {                                    /* Apollo07.423 */
  78. +              prt(5,get_string(463));                   /* Apollo07.423 */
  79. +            }                                           /* Apollo07.423 */
  80. +          }                                             /* Apollo07.423 */
  81. +          break;                                        /* Apollo07.423 */
  82. =        case 'C':
  83. =          nl();
  84.  
  85.  
  86. done.
  87.  
  88. Save, Recompile and run.
  89. As you can see, It's Not so Hard, just a long compile!
  90.  
  91. ---- /┤PΘ££Θ   (8{[}  <-- Bald Vampire W/Glasses & Facial Hair (me)
  92.