• src/sbbs3/atcodes.cpp

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thu Dec 19 18:15:35 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/9f2c2e51eb313313b43e01b4
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Add @-codes to display dates/times in UTC

    When the system time zone is not UTC, but the sysop wants to display some
    dates and times in UTC, they can now use these @-codes to do that:
    - TIME_UTC
    - DATE_UTC
    - UTC:fmt
    - DATETIME_UTC
    - MSG_DATE_UTC

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Accession@VERT/PHARCYDE to Rob Swindell on Fri Dec 20 17:23:09 2024
    Hello Rob Swindell (On Windows,

    On Thu, Dec 19 2024 20:15:35 -0600, you wrote ..

    - UTC:fmt

    Does this one here mean you can now do:

    (at)UTC:%a, %b %d %Y %H:%M:%S %z

    .. or something similar?

    Regards,
    Nick

    ... He who laughs last, thinks slowest.
    ---
    þ Synchronet þ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
  • From Digital Man@VERT to Accession on Fri Dec 20 16:38:15 2024
    Re: Re: src/sbbs3/atcodes.cpp
    By: Accession to Rob Swindell on Fri Dec 20 2024 05:23 pm

    Hello Rob Swindell (On Windows,

    On Thu, Dec 19 2024 20:15:35 -0600, you wrote ..

    - UTC:fmt

    Does this one here mean you can now do:

    (at)UTC:%a, %b %d %Y %H:%M:%S %z

    .. or something similar?

    Kind of. You can't have spaces in @-codes, so you'd need to use \x20 in place of space. And you'd need a terminating (at).

    It's just like the TIME:fmt @-code, but instead of local time, it's UTC. https://wiki.synchro.net/custom:atcodes
    --
    digital man (rob)

    Sling Blade quote #7:
    Karl: I don't reckon the Good Lord would send anybody like you to Hades.
    Norco, CA WX: 66.6°F, 43.0% humidity, 4 mph W wind, 0.00 inches rain/24hrs
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Accession@VERT/PHARCYDE to Digital Man on Fri Dec 20 20:37:40 2024
    Hello Digital,

    On Fri, Dec 20 2024 18:38:15 -0600, you wrote ..

    Does this one here mean you can now do:

    (at)UTC:%a, %b %d %Y %H:%M:%S %z

    .. or something similar?

    Kind of. You can't have spaces in @-codes, so you'd need to use \x20
    in place of space. And you'd need a terminating (at).

    It's just like the TIME:fmt @-code, but instead of local time, it's
    UTC. https://wiki.synchro.net/custom:atcodes

    Thanks for the explanation!

    All relevant information is indeed on the wiki (thanks for that, too!), but your explanation here made it far easier for me to find it all on the wiki and put it together (I had to scroll from the top to the bottom to find all the pieces you mentioned in this message).

    Regards,
    Nick

    ... He who laughs last, thinks slowest.
    ---
    þ Synchronet þ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Jan 5 21:16:57 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/c045c2d6ebaae7120eb13ced
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Resolve GCC warning

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Tue Jan 7 23:32:47 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/b665472217ec8e811ffa9491
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    FILE_ @-code changes/additions

    New:
    - FILE_COST, file's credit value or "FREE" when applicable
    (see also FILE_CREDITS - the file's credit value or 0 when free download)
    - FILE_AUTHOR - file's author (e.g. from SAUCE record) or blank if N/A
    - FILE_GROUP - file's author group (e.g. from SAUCE record) or blank if N/A
    - FILE_BYTES - file's size in bytes (previously, would use FILE_SIZE for this) - FILE_CRC32 - 8 hex digits or blank if N/A
    - FILE_MD5 - 32 hex digits or blank if N/A
    - FILE_SHA1 - 40 hex digits or blank if N/A
    - FILE_TIME_TO_DL - estimated time ("HH:MM:SS") to download file at current CPS

    Changed:
    FILE_SIZE is now the file size estimated in KB, MB, GB, etc., not the exact file size in bytes.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Wed Jan 8 18:56:14 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/d74fafdc1d79edfb68af70f2
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Fix wrong buf size argument in FILE_SIZE code

    Caught by Coverity: CID 529977: Incorrect expression (SIZEOF_MISMATCH)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Wed Jan 8 18:56:14 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/bb850104c61283fe677f1885
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    FILE_* @-code fixes

    FILE_DESC didn't handle blank/no file description correctly

    The @-codes that need file size or date needed to call the proper filedat functions to get those values or else risk them being 0.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Mar 3 18:07:00 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/2787474aa6c7ec211815363e
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Add "AT" @-code to enable easier output of literal @-codes without expansion

    Deuce's suggestion

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Mar 7 20:07:40 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/85f4b96fc8bf9eb432e09782
    Modified Files:
    src/sbbs3/atcodes.cpp
    Log Message:
    Add MSGS @-code - total messages in current sub-board

    Unlike SMB_MSGS, the sub-board does not have to be already open.

    As requested/reported by Finglonger (SILENT)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net