diff --git a/action_respond.go b/action_respond.go index 0d03e8f..2f610dd 100644 --- a/action_respond.go +++ b/action_respond.go @@ -16,7 +16,9 @@ func init() { if r.RespondFallback == nil { return errors.Wrap(err, "preparing response") } - msg = *r.RespondFallback + if msg, err = formatMessage(*r.RespondFallback, m, ruleDef, nil); err != nil { + return errors.Wrap(err, "preparing response fallback") + } } return errors.Wrap( diff --git a/wiki/Home.md b/wiki/Home.md index d6b5351..173569a 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -32,7 +32,7 @@ rules: # See below for examples # Send responding message to the channel the original message was received in - respond: 'Hello chatter' # String, applies templating respond_fallback: 'Oh noes' # String, text to send if the template function causes - # an error, does NOT support templating (default: unset) + # an error, applies templating (default: unset) # Issue a timeout on the user who wrote the chat-line - timeout: 1s # Duration value: 1s / 1m / 1h