• src/sbbs3/exec.cpp js_bbs.cpp load_cfg.c main.cpp readtext.c sbbs.h st

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thu Feb 12 16:18:58 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/c51c61cef03ceb7b5b66ca18
    Modified Files:
    src/sbbs3/exec.cpp js_bbs.cpp load_cfg.c main.cpp readtext.c sbbs.h str_util.c str_util.h websrvr.cpp xtrn.cpp
    Log Message:
    Support text.dat sub-string replacements via text.ini [substr] section

    For example, in ctrl/text.ini:

    [substr]
    \1g: \1m
    Group: Area

    would replace all occurences of the Ctrl-Ag (green) sequence with Ctrl-Am (magenta) and all occurrences of the word "Area" with the word "Group".
    The searches are case-sensitive, e.g. any occurrences of \1G (uppercase 'G')
    in text.dat strings would not be effected by this configuration (you'd need
    a separate substr 'key: value' pair for the uppercase variety if you need it).

    Hopefully this reduces the need for sysops to make text.dat changes or add
    a bunch of strings to their text.dat file just to make attribute changes. This feature could also aid in localization (to other non-English languages).

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