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