Correctly store enabled channels across reloads
This commit is contained in:
parent
3e26238d1c
commit
0f89adf42d
1 changed files with 4 additions and 2 deletions
6
rowbot
6
rowbot
|
@ -284,7 +284,7 @@ alarm-handler() {
|
|||
trap alarm-handler ALRM
|
||||
|
||||
config-reload() {
|
||||
local file
|
||||
local file key recording
|
||||
info "received HUP signal"
|
||||
|
||||
for file in "${prog_args[@]}"; do
|
||||
|
@ -311,7 +311,9 @@ config-reload() {
|
|||
|
||||
if [[ -v markov_chains[@] ]]; then
|
||||
for key in "${!enabled[@]}"; do
|
||||
recording+=",%s=%s" "$key" "${enabled[$key]}"
|
||||
# This is a scalar string, not an array.
|
||||
# shellcheck disable=SC2179
|
||||
recording+=",$key=${enabled[$key]}"
|
||||
done
|
||||
|
||||
export RECORDING=${recording#,}
|
||||
|
|
Loading…
Reference in a new issue