diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-06-29 18:12:32 +0300 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-08-01 02:54:30 +0200 |
commit | e8ed8e7e13134ee7fc8ac116d58efc55813632a1 (patch) | |
tree | 672ff545386a4b9cd2c0bc0516d7362e6242f62d /app.go | |
parent | Add support for hex colors (diff) |
Add a config option to beep on highlight
This will allow to bring user attention when you are getting
highlighted.
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -978,6 +978,10 @@ func (app *App) isHighlight(s *irc.Session, content string) bool { // notifyHighlight executes the script at "on-highlight-path" according to the given // message context. func (app *App) notifyHighlight(buffer, nick, content string) { + if app.cfg.OnHighlightBeep { + app.win.Beep() + } + path := app.cfg.OnHighlightPath if path == "" { defaultHighlightPath, err := DefaultHighlightPath() |