Skip to content
Snippets Groups Projects
  1. Jul 16, 2019
    • deuce's avatar
      If ftell() fails, it returns -1. We don't want to truncate there. · 7081af81
      deuce authored
      Found by Coverity.
      7081af81
    • deuce's avatar
      Prevent LOR by exporting and taking the blinker lock before calling · a963207d
      deuce authored
      bitmap_init_mode().
      a963207d
    • rswindell's avatar
      Use Spidermonkey's JS_ValueToECMAUint32() rather than our own · a985ab51
      rswindell authored
      JS_ValueToUint32() for converting to integers where we may need the full 32
      bits.
      a985ab51
    • rswindell's avatar
      Setting bit-31 of (SS_FASTLOGON) bbs.sys_status would result in a JavaScript · d5be70e3
      rswindell authored
      error (e.g. can't convert 2147745800 to an integer), so use
      JS_ValueToECMAUint32() rather than JS_ValueToInt32() where we possibly need
      a full 32-bit value.
      d5be70e3
    • rswindell's avatar
      Fix bug where daylight saving time (DST) was not configurable when selecting · 0dcdf907
      rswindell authored
      certain Australian timezones.
      0dcdf907
    • rswindell's avatar
      Add missing [login] and [logon] options. · 871b1b9b
      rswindell authored
      871b1b9b
    • rswindell's avatar
      As PSI-Jack pointed out, detecting fast-logons in login.js does not help · 2efd7067
      rswindell authored
      with logins via SSH or RLogin (handled in answer.cpp). So revert login.js
      back to rev 1.17 since the fast-logons are now detected in the login name
      parsing in login.cpp's sbbs_t::parse_login() which is used in answer() and
      login() - called via bbs.login().
      
      So... if you're writing a login matrix or custom login module where you want
      to use a *different* method of detecting/enabling fast logon support, you'll
      just need to set the SS_FASTLOGON flag in the JS bbs.sys_status property:
          bbs.sys_status |= SS_FASTLOGON;
      
      This also means that 2 modopts.ini options (fast_logon and
      fast_logon_requirments) are now used in logon.js, not login.js, so the section
      where you add them is now [logon], not [login]. Got it? Good. :-)
      2efd7067
    • rswindell's avatar
      Added new bbs.sys_status flag definitions: · 12768c74
      rswindell authored
      - SS_QWKLOGON
      - SS_FASTLOGON
      12768c74
    • rswindell's avatar
      Move login username/number parsing into a the C++ code (from login.js) since we · be7a590d
      rswindell authored
      need that internal for SSH and RLogin support of fast-logons.
      So, now, even if logging in via SSH or Rlogin, the sys_status SS_FASTLOGON
      flag will be set when the user specifies "!username-or-number" during logon and
      then the logon.js can use that to determine what to display (or not) to the
      user, during logon.
      
      The QWK logon support ("*username-or-number") is also handled in this new
      sbbs_t method: parse_login().
      
      This means the fast_logon_char is no longer configurable (hard-coded to '!')
      and the modopts.ini options are going to be parsed by logon.js from the [logon]
      section (not the [login] section).
      
      You still must set fast_logon=true in the [logon] section of modopts.ini to
      enable the fast-logon option for users.
      be7a590d
    • rswindell's avatar
      2 changes: · 570ea3a0
      rswindell authored
      Always parse/strip the fast_logon_char (default: '!') from the login name
      /number. This way if users get used to logging in in this fashion, it won't
      stimy them if the sysop disables the feature.
      
      Added fast_logon_requirements option (default: blank) which is an optional
      ARS to limit fast logon support to specific user-groups.
      570ea3a0
    • rswindell's avatar
      Added support for "fast logons". This feature must be enabled by the sysop · c1692d43
      rswindell authored
      by setting fast_logon=true in the [login] section of the ctrl/modopts.ini file.
      A user can choose a fast logon by prefixing their user name or number with
      '!' (configurable via 'fast_logon_char'). This option tells logon.js to
      skip the logon menus and logon events.
      The logon.js just looks for bbs.fast_logon==true, so if you have your own
      method of detecting a fast logon (e.g. a logon matrix menu or a prompt of the
      user), then you could just set bbs.fast_logon=true and continue to use the
      stock logon.js.
      
      Other ideas (not implemented):
      - a minimum security level (or ARS) required to allow fast logons
      - a notice to the user that fast logons are available (enabled)
      - option to skip logon menus but not logon events, or vice-versa
      c1692d43
    • rswindell's avatar
      Create aliases for the MAILW:<num>, MAILP:<num>, and SPAMW:<num> @-codes: · 4c44bf61
      rswindell authored
        MAILW#<num>, MAILP#<num>, SPAMW#<num>
      
      These codes, unlike the colon-variants, can be combined with format modifiers
      (e.g. -L, etc.).
      4c44bf61
  2. Jul 15, 2019
  3. Jul 14, 2019
  4. Jul 13, 2019
Loading