Scheduling of quiet vs. verbose config saving

Rename the current ECONFIG_NEED_WRITE to ECONFIG_NEED_VERBOSE_WRITE
as it always broadcasts the result for SIGUSR1, even on success.
Keep ECONFIG_NEED_WRITE for cases where the config should be written
without a notification of success.
This commit is contained in:
J-P Nurmi
2014-10-12 23:29:56 +02:00
parent a888d38511
commit 206c149f48
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ static void signalHandler(int sig) {
break;
case SIGUSR1:
CUtils::PrintMessage("Caught SIGUSR1");
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE);
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_VERBOSE_WRITE);
break;
default:
CUtils::PrintMessage("WTF? Signal handler called for a signal it doesn't know?");