commit eaf823d
Hubert Hirtz
·
2021-05-01 12:16:39 +0000 UTC
parent 10d6a23
Don't look for nor execute sh when on-highlight is empty
1 files changed,
+3,
-0
M
app.go
M
app.go
+3,
-0
1@@ -548,6 +548,9 @@ func (app *App) isHighlight(content string) bool {
2 // notifyHighlight executes the "on-highlight" command according to the given
3 // message context.
4 func (app *App) notifyHighlight(buffer, nick, content string) {
5+ if app.cfg.OnHighlight == "" {
6+ return
7+ }
8 sh, err := exec.LookPath("sh")
9 if err != nil {
10 return