Allow {time} in warning reason

This commit is contained in:
Ben Peddell 2016-05-28 13:25:01 +10:00
parent 6b22944fe6
commit 5f317c8d57
2 changed files with 2 additions and 1 deletions

View File

@ -377,7 +377,7 @@ The following options can be overridden on a per-instance basis:
Valid in `msgWarnReason`, replaced at runtime with the appropriate `msgReason*` template
`{time}`;;
Valid in `msgWarnReason`, replaced at runtime with the appropriate `msgTime*` template
Valid in `msgWarnReason` and `msgReason*`, replaced at runtime with the appropriate `msgTime*` template
`{modnamesupdate}`;;
Valid in `msgReason*Mod`, replaced at runtime with a comma-delimited list of updated mod names

View File

@ -988,6 +988,7 @@ printWarnMessage(){
reason="maintenance"
fi
fi
reason="${reason//\{time\}/${msgtime}}"
reason="${reason//\{modnamesupdated\}/${modnamesupdated}}"
msg="${msg//\{reason\}/${reason}}"
printf "%s\n" "$msg"