From 804ecbceaa8c44f53cd188f9b7f1440e51f5f715 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 10 Mar 2005 09:59:03 +0000
Subject: [PATCH] Bugfix: read and write the web server sound file values (for
 Win32).

---
 src/sbbs3/sbbs_ini.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/sbbs3/sbbs_ini.c b/src/sbbs3/sbbs_ini.c
index a4de37fdda..9e31fd6469 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;
 
-- 
GitLab