diff --git a/src/sbbs3/sbbs_ini.c b/src/sbbs3/sbbs_ini.c index a4de37fdda0abaa789dabf804894eb2bd347546a..9e31fd64698c4fc0f063228c35c58d5d58a46448 100644 --- a/src/sbbs3/sbbs_ini.c +++ b/src/sbbs3/sbbs_ini.c @@ -514,6 +514,13 @@ void sbbs_read_ini( web->max_cgi_inactivity =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 =iniReadBitField(fp,section,strLogMask,log_mask_bits,global->log_mask); web->options @@ -1085,6 +1092,13 @@ BOOL sbbs_write_ini( if(!iniSetShortInt(lp,section,"MaxCgiInactivity",web->max_cgi_inactivity,&style)) 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)) break;