• customize logonlist from modopts.ini

    From Fernando Toledo@VERT to GitLab issue in main/sbbs on Mon Dec 28 09:28:25 2020
    open https://gitlab.synchro.net/main/sbbs/-/issues/197

    Hi!
    I tried to customize the *last_few_callers_msg* option on modopts.ini at [logonlist] section.

    I cannot set the format to customize the colors and put the \n at end.

    It's always show the literal string when the user logon to the bbs

    ```
    "\x01n\x01g\x01hUltimos llamados:\x01n\r\n"
    ```

    The code at logonlist use print()

    ```
    if(!this.print(options.last_few_callers_msg || "\x01n\x01g\x01hLast few callers:\x01n\r\n"
    ```

    I tried single, double and no quotes whitout success

    Thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Dec 28 12:02:15 2020
    https://gitlab.synchro.net/main/sbbs/-/issues/197#note_1248

    You need to use a colon as the key/value separator when putting string literals in .ini files:
    http://wiki.synchro.net/config:ini_files#string_literals

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab note in main/sbbs on Mon Dec 28 19:48:13 2020
    https://gitlab.synchro.net/main/sbbs/-/issues/197#note_1249

    Oh Cool! I did not know about that syntax!

    Thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab issue in main/sbbs on Mon Dec 28 19:48:14 2020
    close https://gitlab.synchro.net/main/sbbs/-/issues/197

    Hi!
    I tried to customize the *last_few_callers_msg* option on modopts.ini at [logonlist] section.

    I cannot set the format to customize the colors and put the \n at end.

    It's always show the literal string when the user logon to the bbs

    ```
    "\x01n\x01g\x01hUltimos llamados:\x01n\r\n"
    ```

    The code at logonlist use print()

    ```
    if(!this.print(options.last_few_callers_msg || "\x01n\x01g\x01hLast few callers:\x01n\r\n"
    ```

    I tried single, double and no quotes whitout success

    Thanks!

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