Skip to content
Snippets Groups Projects
  1. Sep 07, 2020
  2. Sep 06, 2020
  3. Sep 05, 2020
  4. Sep 04, 2020
  5. Aug 30, 2020
    • Rob Swindell's avatar
      Fix compile issue in previous commit. Add more semicolons. · ec5cbb84
      Rob Swindell authored
      One can't have too many semicolons.
      ec5cbb84
    • Rob Swindell's avatar
      External program "use shell" option can be used to use a new JS context · 1decdc69
      Rob Swindell authored
      Rather than introduce yet-another-external-program/config flag to enable
      the "new JS run-time/context" per invocation of any particular JS command,
      I'm using the XTRN/EX_SH ("Use Shell") option as it had no function for
      JavaScript command-lines and the concept is similar.
      
      So if you want to invoke a JS external program/timed-event in its own
      "sandbox", enable the "Use Shell / New Context" option for that
      program/command in SCFG. There may be performance penalties when running
      JS mods in this way, but you get the benefit of isolating one JS module
      from all others, if/when necessary.
      1decdc69
    • Rob Swindell's avatar
      Previous commit fixed issue with JS_GC before JS_ENDREQUEST · 25625186
      Rob Swindell authored
      So revert the order back to the way it was in aa2bcd61
      (don't you love these git references?).
      
      Also, the previous fix for js_execfile() calls for global hot-key events also
      fixed the EX_JS_CX feature I was working on (js_execmodule)!
      25625186
    • Rob Swindell's avatar
      Only over-ride (lower the severity) of the cryptlib log msg for a single case · 20393557
      Rob Swindell authored
      Add another "get cryptlib error string" (at least, that's what I assume GCES
      stands for) that allows the log level to be specified, rather than derived
      from Cryptlib thinks the log level should be. Do this rather than adding one
      (lowering the severity) of every cryptlib log message as I did in the previous
      commit to this file.
      20393557
    • Rob Swindell's avatar
      Fix JS global object corruption when invoking JS global hotkey handlers · cb5188bd
      Rob Swindell authored
      As reported by Ragnarok and The Lizard Master, invoking a JS global
      hot-key handler (e.g. hitting Ctrl-U or Ctrl-P with the privatemsg
      or nodelist modules installed as handlers) would lead to the global
      object being cleared/corrupted so other scripts would then fail to
      run correctly (e.g. Error: can't open sbbsdefs.js: No such file or directory)
      
      This probably explains the JS_GC/JS_ENDREQUEST change needed when
      the hotkey-specific JS runtime/context/scope was introduced last year.
      Should revisit that too.
  6. Aug 29, 2020
    • Rob Swindell's avatar
      Add one (lower severity) of cryptlib log messages in the mail server · cdf1b613
      Rob Swindell authored
      (e.g. errors become warnings) - I'm tired of seeing this in my
      error.log every day:
      SEND/TLS ... ERROR 'Received TLS alert message: Handshake failure' (-15) setting session active
      cdf1b613
    • Rob Swindell's avatar
      When printing a file one line at a time, don't use putmsg() · 1510b3e2
      Rob Swindell authored
      Fix problem introduced in
      b1ecd9b6 (August 8, 2019)
      
      When sbbs_t::printfile() is used to display a file that is < 2MB in size
      and the P_OPENCLOSE mode flag was not specified, the file is read and
      displayed one line at a time. This allows for the quick display of very
      large files. This was accomlished by calling sbbs_t::putmsg() for each
      line. Unfortunately, putmsg() would save and restore console mode flags
      like the auto-screen pause control flags stored in sbbs_t::sys_misc
      so this would render some features like the POFF @-code, inoperable.
      This problem was reported by WitNik with files displayed from
      Bulleeye! Bulletins.
      
      Other issues were discovered with the WORDWRAP/WRAPOFF @-codes.
      
      Fixed with the addition of sbbs_t::putmsgfrag() which is used by
      printfile() to display a message fragment (one line) without
      saving/restoring console state flags.
      1510b3e2
  7. Aug 24, 2020
  8. Aug 23, 2020
  9. Aug 22, 2020
  10. Aug 18, 2020
  11. Aug 17, 2020
  12. Aug 16, 2020
  13. Aug 15, 2020
    • rswindell's avatar
      Notify (short-message, email) the sysop when they've been paged to chat. · 64ab234c
      rswindell authored
      Try that, Nelgin.
      64ab234c
    • rswindell's avatar
      More file existence/length checks, with only a WARNING log level (not error)... · f94d2132
      rswindell authored
      More file existence/length checks, with only a WARNING log level (not error) since some QWKnet nodes apparently like to start concurrent QWK packet downloads and inevitably one finishes first, deleting the file, and the second transfer logs and error. Examples:
        8/14  08:10:06p  2296 <EPHRAM> downloading QWK packet (1320 bytes) in passive mode
        8/14  08:10:06p  3792 <EPHRAM> downloading QWK packet (1320 bytes) in passive mode
        8/14  08:10:06p  2296 <EPHRAM> DATA Transfer successful: 1320 bytes sent in 0 seconds (2640 cps)
        8/14  08:10:06p  3792 <EPHRAM> !DATA ERROR 2 (No such file or directory) line 1376 opening s:\sbbs\data\file/0888.qwk
        8/14  11:28:55p  2576 <POTOGOLD> downloading QWK packet (27129 bytes) in passive mode
        8/14  11:28:55p  2576 <POTOGOLD> DATA Transfer successful: 27129 bytes sent in 0 seconds (54258 cps)
        8/14  11:28:55p  1924 <POTOGOLD> downloading QWK packet (4294967295 bytes) in passive mode
        8/14  11:28:56p  1924 <POTOGOLD> !DATA ERROR 2 (No such file or directory) line 1376 opening s:\sbbs\data\file/0168.qwk
      
      Also some more 64-bit file length support (flength returns an off_t now, not a ulong).
      And ftell() returns a long (not a ulong).
      f94d2132
  14. Aug 14, 2020
  15. Aug 11, 2020
    • rswindell's avatar
      The MOUSE user setting flag is bit 31 (1<<31). Modifying a user.setting · 03004b56
      rswindell authored
      property with bit 31 set would result in a user.setting value of 0xffffffff which means the user is both deleted and inactive (all bits are set).
      JS_ValueToInt32() does "bad things" when bit-31 is set in the value being converted, use JS_ValueToECMAInt32 or JS_ValueToECMAUint32 instead.
      03004b56
  16. Aug 10, 2020
  17. Aug 09, 2020
Loading