mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 19:28:28 +00:00
Allow {time} in warning reason
This commit is contained in:
parent
6b22944fe6
commit
5f317c8d57
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user