summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-06-29 18:12:32 +0300
committerdelthas <delthas@dille.cc>2022-08-01 02:54:30 +0200
commite8ed8e7e13134ee7fc8ac116d58efc55813632a1 (patch)
tree672ff545386a4b9cd2c0bc0516d7362e6242f62d /app.go
parentAdd 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.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.go b/app.go
index 2aaa486..a87df2d 100644
--- a/app.go
+++ b/app.go
@@ -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()