mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 16:58:27 +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
|
Valid in `msgWarnReason`, replaced at runtime with the appropriate `msgReason*` template
|
||||||
|
|
||||||
`{time}`;;
|
`{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}`;;
|
`{modnamesupdate}`;;
|
||||||
Valid in `msgReason*Mod`, replaced at runtime with a comma-delimited list of updated mod names
|
Valid in `msgReason*Mod`, replaced at runtime with a comma-delimited list of updated mod names
|
||||||
|
|||||||
@ -988,6 +988,7 @@ printWarnMessage(){
|
|||||||
reason="maintenance"
|
reason="maintenance"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
reason="${reason//\{time\}/${msgtime}}"
|
||||||
reason="${reason//\{modnamesupdated\}/${modnamesupdated}}"
|
reason="${reason//\{modnamesupdated\}/${modnamesupdated}}"
|
||||||
msg="${msg//\{reason\}/${reason}}"
|
msg="${msg//\{reason\}/${reason}}"
|
||||||
printf "%s\n" "$msg"
|
printf "%s\n" "$msg"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user