summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2020-11-07 11:41:19 +0100
committerHubert Hirtz <hubert@hirtz.pm>2020-11-07 11:41:19 +0100
commit27060a93cafc28e47929e776d54a64725f7b8b03 (patch)
treee0c0fbe0a632dcb1d02540ce76d206066cc3f817 /config.go
parentDefault user/real to nickname if unspecified (diff)
Configurable channel list width
Diffstat (limited to 'config.go')
-rw-r--r--config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.go b/config.go
index 65ca203..2515e57 100644
--- a/config.go
+++ b/config.go
@@ -16,6 +16,7 @@ type Config struct {
Highlights []string
OnHighlight string `yaml:"on-highlight"`
NickColWidth int `yaml:"nick-column-width"`
+ ChanColWidth int `yaml:"chan-column-width"`
Debug bool
}
@@ -25,6 +26,9 @@ func ParseConfig(buf []byte) (cfg Config, err error) {
if cfg.NickColWidth <= 0 {
cfg.NickColWidth = 16
}
+ if cfg.ChanColWidth <= 0 {
+ cfg.ChanColWidth = 16
+ }
return
}