Skip to content
Snippets Groups Projects
  1. Feb 22, 2022
    • Rob Swindell's avatar
      Timed event "month days" value of 1 means "any day" (same as 0) · cef184fc
      Rob Swindell authored
      This field should not normally have a value of '1' (no way to configure that, normally, since days are numbered starting at 1 and bit 1 is 2), but if it does, it's treated the same as 0 (any day of the month) - so fix that mismatch in getnexteventtime(). Just noticed this while comparing the logic with the new is_time_to_run() functions in main.cpp. That logic wasn't (should not have) changed, so this mismatch in the treatment of mdays == 1 existed before.
      cef184fc
  2. Nov 18, 2021
    • Rob Swindell's avatar
      Add text.dat lines for "All" and the List key ('L'), used in quoting · 9513bdba
      Rob Swindell authored
      The internal line editor's quoting feature add some hard-coded strings ("Done" and "All") and the (L)ist key was hard-coded. Use the text.dat string (new and pre-existing) for these now.
      
      Also, use the new sbbs_t *_key() methods for referencing the configured key bindings (via text.dat) for these common key-stroke commands.
      Convert the text.dat strings for keys (e.g. YNQP) to uppercase always as well.
      9513bdba
  3. Jun 07, 2021
    • Rob Swindell's avatar
      Modernize finduser() a bit · 32d45ed7
      Rob Swindell authored
      Skip any prepended white-space in the passed name to find.
      Use better variable names (and length) for the character strings.
      Use matchusername() instead of strcmp(); matchusername() follows the liberal user-id/alias/name matching algorithm.
      Use strcasestr() instead of strstr(), so no copy/modification (upper-casing) of passed name is now required.
      When 'Q'uitting the search, set the SS_ABORT flag.
      32d45ed7
  4. Apr 04, 2021
  5. Dec 29, 2020
  6. Dec 28, 2020
  7. Dec 21, 2020
    • Rob Swindell's avatar
      Fix next-forced-exclusive event time calculation · fda749ac
      Rob Swindell authored
      Jump the time forward (in 24-hour chunks) to find the next date/time the event will run rather than just adding 24-hours and assuming it's an event that runs every day (of the week or month) at a specific time.
      
      Also, expose the next-run-date/time for an event as a new `next_run` property for `xtrn_area.event[]` (in `time_t` format) for easier debugging of these kinds of issues.
      Also expose the error log level as a new property: `error_level` while we're here.
      fda749ac
  8. Dec 09, 2020
  9. Aug 16, 2020
  10. Apr 27, 2020
    • rswindell's avatar
      Paranoia checks in getnextevent(): · a477d854
      rswindell authored
      If either localtime_r() or mktime() return a error result, don't use use the
      non-sensical time.
      Nelgin has reported that under some conditions, he sees:
      Your time has been reduced due to an upcoming event on Wed Dec 31 1969 18:00:00
      when using Ctrl-T (time info hot key).
      I don't have an explanation for this, but if either of those function calls
      failed in getnextevent(), something like this could happen. <shrug>
      a477d854
  11. Jun 10, 2018
    • rswindell's avatar
      JS bbs object changes: · a32a52cb
      rswindell authored
      - finduser() method no longer prints "Unknown user" upon failure (the calling
        script can do this if/when it wants).
      - read_mail() method now accepts an optional 3rd argumnet (loadmail_mode)
        which may be used to load *only* un-read mail (for example), see LM_* in
        sbbsdefs.js
      
      Pass the lm_mode as a 4th argument to any readmail mod (if one is installed) -
      this correlates with the LM_* mode flag values (0 is normal/usual).
      
      File attachments can also be in a file/####.out directory (e.g. outbound
      Internet email attachments), so try deleting from there too when deleting
      mail with attachments.
      a32a52cb
  12. Oct 29, 2015
  13. Apr 28, 2015
    • rswindell's avatar
      Bug-fix: From the text.dat Yes/No/Quit/Password entry (YNQP), the 'Q' character · aa709e2a
      rswindell authored
      was never used. This was intended to be a method for internationalization,
      letting the sysop change which key is used as the uiniversal "quit" key.
      This commit replaces most of the uses of the hard-coded 'Q' for quit wtih the
      3rd charcter in the text.dat YNQP string. Some hard-coded menus still have the
      'Q' key hard-coded and will need to be addressed later. The text.h YN index
      macro was changed to YNQP and the JS text index variable name will change
      as well.
      aa709e2a
  14. Oct 19, 2011
  15. Mar 06, 2010
  16. Nov 09, 2009
  17. Mar 20, 2009
  18. Feb 16, 2009
  19. Aug 14, 2007
  20. Jul 25, 2007
  21. Jul 11, 2007
  22. Apr 05, 2006
  23. Apr 05, 2004
  24. Oct 24, 2003
  25. May 18, 2003
  26. Apr 18, 2003
  27. Apr 08, 2003
  28. Nov 13, 2002
  29. Mar 13, 2002
  30. Nov 27, 2001
  31. Jun 27, 2001
  32. Jun 14, 2001
  33. Apr 19, 2001
  34. Apr 12, 2001
  35. Apr 10, 2001
  36. Dec 11, 2000
Loading