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

Better support for a blank ("") text.dat AreYouThere string

If a sysop doesn't want this warning to do anything, then no need to save
and restore the current (last displayed) line of text.
parent df37d564
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -136,7 +136,7 @@ char sbbs_t::getkey(int mode)
if(online==ON_REMOTE && !(console&CON_NO_INACT)
&& ((cfg.inactivity_warn && inactive >= cfg.max_getkey_inactivity * (cfg.inactivity_warn / 100.0))
|| inactive >= cfg.max_getkey_inactivity)) {
if(sys_status&SS_USERON && inactive < cfg.max_getkey_inactivity) {
if((sys_status & SS_USERON) && inactive < cfg.max_getkey_inactivity && *text[AreYouThere] != '\0') {
saveline();
bputs(text[AreYouThere]);
}
......@@ -155,7 +155,7 @@ char sbbs_t::getkey(int mode)
hangup();
return(0);
}
if(sys_status&SS_USERON) {
if((sys_status & SS_USERON) && *text[AreYouThere] != '\0') {
attr(LIGHTGRAY);
carriage_return();
cleartoeol();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment