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

Minor beautifications

parent 07b42187
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4019 passed
......@@ -720,7 +720,7 @@ static void websrvr_cfg(void)
break;
case 14:
SAFECOPY(str, maximum(startup.max_clients));
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Client Count (0=unlimited)", str, 10, K_EDIT) > 0)
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Client Count (0=Unlimited)", str, 10, K_EDIT) > 0)
startup.max_clients = atoi(str);
break;
case 15:
......@@ -950,7 +950,7 @@ static void ftpsrvr_cfg(void)
break;
case 9:
SAFECOPY(str, maximum(startup.max_clients));
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Client Count (0=unlimited)", str, 10, K_EDIT) > 0)
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Client Count (0=Unlimited)", str, 10, K_EDIT) > 0)
startup.max_clients = atoi(str);
break;
case 10:
......@@ -1289,7 +1289,7 @@ static void mailsrvr_cfg(void)
break;
case 13:
SAFECOPY(str, maximum(startup.max_clients));
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Client Count (0=unlimited)", str, 10, K_EDIT) > 0)
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Client Count (0=Unlimited)", str, 10, K_EDIT) > 0)
startup.max_clients = atoi(str);
break;
case 14:
......
......@@ -1447,6 +1447,7 @@ void cfg_notify(void)
else
SAFECOPY(str, "Nobody");
sprintf(opt[i++],"%-23.23s%s","Error Notifications", str);
if(cfg.erruser)
sprintf(opt[i++],"%-23.23s%s","Error Level", errLevelStringList[cfg.errlevel]);
opt[i][0] = '\0';
uifc.helpbuf=
......@@ -1915,7 +1916,7 @@ void sys_cfg(void)
sprintf(opt[i++],"%-27.27s%hu","Days of New Messages", cfg.new_msgscan_init);
sprintf(opt[i++],"%-27.27s%s", "Gender Options", cfg.new_genders);
strcpy(opt[i++],"Default Toggles...");
strcpy(opt[i++],"QWK Packet Setting...");
strcpy(opt[i++],"QWK Packet Settings...");
opt[i][0]=0;
uifc.helpbuf=
"`New User Values:`\n"
......@@ -2734,7 +2735,7 @@ void sys_cfg(void)
"Oldest rotated log files are automatically deleted to save disk space.\n"
;
byte_count_to_str(cfg.max_log_size, str, sizeof(str));
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Log File Size (in bytes, 0=unlimited)", str, 10, K_EDIT|K_UPPER) > 0) {
if(uifc.input(WIN_MID|WIN_SAV, 0, 0, "Maximum Log File Size (in bytes, 0=Unlimited)", str, 10, K_EDIT|K_UPPER) > 0) {
cfg.max_log_size = (uint32_t)parse_byte_count(str, 1);
if(cfg.max_log_size) {
SAFEPRINTF(str, "%u", cfg.max_logs_kept);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment