Use "-" to disable notification

This commit is contained in:
Ben Peddell 2018-06-18 23:15:50 +10:00
parent 6c320bc56f
commit 5b56379007

View File

@ -522,7 +522,7 @@ function notifyOverride(){
# Notification wrapper
#
function notify(){
if [ -n "$1" ]; then
if [[ -n "$1" && "$1" != "-" ]]; then
local msg
msg="${notifyTemplate:-Message from instance \`{instance\}\` on server \`{server\}\`: {msg\}}"
msg="${msg//\{msg\}/${1}}"