Skip to content
Snippets Groups Projects
Commit f124ffe9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use On/Off text.dat strings instead of (soon to be deprecated) ON/OFF strings

There are other ways to generate forced-upper case expanded @-codes, if that's
what you want.

Fewer duplicates in text.dat make localization, translation to other languages
easier.
parent 8474c792
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -291,7 +291,7 @@ void sbbs_t::multinodechat(int channel)
useron.chat^=CHAT_ACTION;
bprintf("\r\nAction commands are now %s\r\n"
,useron.chat&CHAT_ACTION
? text[ON]:text[OFF]);
? text[On]:text[Off]);
putuserchat(useron.number, useron.chat);
break;
case 'C': /* List of action commands */
......@@ -314,7 +314,7 @@ void sbbs_t::multinodechat(int channel)
useron.chat^=CHAT_ECHO;
bprintf(text[EchoIsNow]
,useron.chat&CHAT_ECHO
? text[ON]:text[OFF]);
? text[On]:text[Off]);
putuserchat(useron.number, useron.chat);
break;
case 'L': /* list nodes */
......@@ -645,7 +645,7 @@ bool sbbs_t::sysop_page(void)
else {
sys_status^=SS_SYSPAGE;
bprintf(text[SysopPageIsNow]
,sys_status&SS_SYSPAGE ? text[ON] : text[OFF]);
,sys_status&SS_SYSPAGE ? text[On] : text[Off]);
nosound();
}
if(!(sys_status&SS_SYSPAGE))
......
......@@ -275,7 +275,7 @@ int sbbs_t::exec_function(csi_t *csi)
case CS_ANSI_CAPTURE: /* Capture ANSI codes */
sys_status^=SS_ANSCAP;
bprintf(text[ANSICaptureIsNow]
,sys_status&SS_ANSCAP ? text[ON] : text[OFF]);
,sys_status&SS_ANSCAP ? text[On] : text[Off]);
return(0);
case CS_LIST_TEXT_FILE: /* View ASCII/ANSI/Ctrl-A file */
if(!chksyspass())
......
......@@ -152,9 +152,9 @@ char sbbs_t::handle_ctrlkey(char ch, int mode)
CRLF;
bputs(text[RawMsgInputModeIsNow]);
if(console&CON_RAW_IN)
bputs(text[OFF]);
bputs(text[Off]);
else
bputs(text[ON]);
bputs(text[On]);
console^=CON_RAW_IN;
CRLF;
CRLF;
......
......@@ -167,7 +167,7 @@ bool sbbs_t::telnet_gate(char* destaddr, uint mode, unsigned timeout, char* clie
mode^=TG_ECHO;
bprintf(text[EchoIsNow]
,mode&TG_ECHO
? text[ON]:text[OFF]);
? text[On]:text[Off]);
continue;
case 'L':
whos_online(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment