summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
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
}