commit ef1ca1c

Hubert Hirtz  ·  2021-04-27 12:41:45 +0000 UTC
parent fc7c13e
Add option to disable sending typing notifications
3 files changed,  +8, -2
M app.go
M app.go
+1, -1
1@@ -567,7 +567,7 @@ func (app *App) notifyHighlight(buffer, nick, content string) {
2 // typing sends typing notifications to the IRC server according to the user
3 // input.
4 func (app *App) typing() {
5-	if app.s == nil {
6+	if app.s == nil || app.cfg.NoTypings {
7 		return
8 	}
9 	buffer := app.win.CurrentBuffer()
+2, -0
1@@ -15,6 +15,8 @@ type Config struct {
2 	Password *string
3 	NoTLS    bool `yaml:"no-tls"`
4 
5+	NoTypings bool `yaml:"no-typings"`
6+
7 	Highlights   []string
8 	OnHighlight  string `yaml:"on-highlight"`
9 	NickColWidth int    `yaml:"nick-column-width"`
+5, -1
 1@@ -62,7 +62,11 @@ Some settings are required, the others are optional.
 2 	The number of cell that the column for channels occupies.  By default, 16.
 3 
 4 *no-tls*
 5-	Disable TLS encryption. By default, false.
 6+	Disable TLS encryption.  Defaults to false.
 7+
 8+*no-typings*
 9+	Prevent senpai from sending typing notifications and let others know when
10+	you are typing a message.  Defaults to false.
11 
12 *debug*
13 	Dump all sent and received data to the home buffer, useful for debugging.