Skip to content
Snippets Groups Projects
Commit 804ecbce authored by rswindell's avatar rswindell
Browse files

Bugfix: read and write the web server sound file values (for Win32).

parent 9a0b8a5b
No related branches found
No related tags found
No related merge requests found
...@@ -514,6 +514,13 @@ void sbbs_read_ini( ...@@ -514,6 +514,13 @@ void sbbs_read_ini(
web->max_cgi_inactivity web->max_cgi_inactivity
=iniReadShortInt(fp,section,"MaxCgiInactivity",120); /* seconds */ =iniReadShortInt(fp,section,"MaxCgiInactivity",120); /* seconds */
SAFECOPY(web->answer_sound
,iniReadString(fp,section,"AnswerSound",nulstr,value));
SAFECOPY(web->hangup_sound
,iniReadString(fp,section,"HangupSound",nulstr,value));
SAFECOPY(web->hack_sound
,iniReadString(fp,section,"HackAttemptSound",nulstr,value));
web->log_mask web->log_mask
=iniReadBitField(fp,section,strLogMask,log_mask_bits,global->log_mask); =iniReadBitField(fp,section,strLogMask,log_mask_bits,global->log_mask);
web->options web->options
...@@ -1085,6 +1092,13 @@ BOOL sbbs_write_ini( ...@@ -1085,6 +1092,13 @@ BOOL sbbs_write_ini(
if(!iniSetShortInt(lp,section,"MaxCgiInactivity",web->max_cgi_inactivity,&style)) if(!iniSetShortInt(lp,section,"MaxCgiInactivity",web->max_cgi_inactivity,&style))
break; break;
if(!iniSetString(lp,section,"AnswerSound",web->answer_sound,&style))
break;
if(!iniSetString(lp,section,"HangupSound",web->hangup_sound,&style))
break;
if(!iniSetString(lp,section,"HackAttemptSound",web->hack_sound,&style))
break;
if(!iniSetBitField(lp,section,strOptions,web_options,web->options,&style)) if(!iniSetBitField(lp,section,strOptions,web_options,web->options,&style))
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment