diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2020-11-07 11:41:19 +0100 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2020-11-07 11:41:19 +0100 |
commit | 27060a93cafc28e47929e776d54a64725f7b8b03 (patch) | |
tree | e0c0fbe0a632dcb1d02540ce76d206066cc3f817 /config.go | |
parent | Default user/real to nickname if unspecified (diff) |
Configurable channel list width
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |