diff options
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 } |
