Skip to content

Commit

Permalink
fix: do not prompt for indicator text when it's disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Jan 31, 2024
1 parent ea3cfe7 commit f6e8c62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/lib/cc/modGenAgent.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,10 @@ func MakeConfig() (err error) {
// CC indicator
RuntimeConfig.CCIndicator = Options["cc_indicator"].Val
RuntimeConfig.CCIndicatorText = Options["indicator_text"].Val
CliMsg("Remember to put text %s in your indicator response",
strconv.Quote(RuntimeConfig.CCIndicatorText))
if RuntimeConfig.CCIndicatorText != "" {
CliMsg("Remember to put text %s in your indicator (%s) response",
strconv.Quote(RuntimeConfig.CCIndicatorText), RuntimeConfig.CCIndicator)
}

if Options["ncsi"].Val == "on" {
RuntimeConfig.DisableNCSI = true
Expand Down

0 comments on commit f6e8c62

Please sign in to comment.