Control sound-mute via semfile (ctrl/sound.muted) rather than sbbs.ini
There was a bug with reloading the configuration files in sbbsctrl where the sound button no longer reflected the truth and the sysop's previous click-state of the button was lost. Rather than going through writing the OPT_MUTE flag to the Options fields of all the sections of the sbbs.ini and then re-loading that file as a result, just do like we did with the sysop chat availability: use a semfile. So much simpler. If anyone ever needs instance-specific muting, we can create/check instance/host-specific mute semfiles then. Doubt that'll happen though. Also, removed the old sysavail control methods of ntsvcs too.
Showing
- src/sbbs3/ctrl/MainFormUnit.cpp 10 additions, 27 deletionssrc/sbbs3/ctrl/MainFormUnit.cpp
- src/sbbs3/ftpsrvr.c 5 additions, 5 deletionssrc/sbbs3/ftpsrvr.c
- src/sbbs3/login.cpp 2 additions, 2 deletionssrc/sbbs3/login.cpp
- src/sbbs3/logout.cpp 1 addition, 1 deletionsrc/sbbs3/logout.cpp
- src/sbbs3/mailsrvr.c 9 additions, 9 deletionssrc/sbbs3/mailsrvr.c
- src/sbbs3/main.cpp 2 additions, 2 deletionssrc/sbbs3/main.cpp
- src/sbbs3/ntsvcs.c 0 additions, 22 deletionssrc/sbbs3/ntsvcs.c
- src/sbbs3/ntsvcs.h 1 addition, 19 deletionssrc/sbbs3/ntsvcs.h
- src/sbbs3/services.c 6 additions, 6 deletionssrc/sbbs3/services.c
- src/sbbs3/startup.h 3 additions, 3 deletionssrc/sbbs3/startup.h
- src/sbbs3/userdat.c 19 additions, 0 deletionssrc/sbbs3/userdat.c
- src/sbbs3/userdat.h 2 additions, 0 deletionssrc/sbbs3/userdat.h
- src/sbbs3/websrvr.c 6 additions, 6 deletionssrc/sbbs3/websrvr.c
Loading
Please register or sign in to comment