summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/config.go b/config.go
index 10656f4..a2f70b9 100644
--- a/config.go
+++ b/config.go
@@ -58,10 +58,11 @@ type Config struct {
NoTypings bool `yaml:"no-typings"`
Mouse *bool
- Highlights []string
- OnHighlight string `yaml:"on-highlight"`
- NickColWidth int `yaml:"nick-column-width"`
- ChanColWidth int `yaml:"chan-column-width"`
+ Highlights []string
+ OnHighlight string `yaml:"on-highlight"`
+ NickColWidth int `yaml:"nick-column-width"`
+ ChanColWidth int `yaml:"chan-column-width"`
+ MemberColWidth int `yaml:"member-column-width"`
Colors struct {
Prompt Color
@@ -93,6 +94,9 @@ func ParseConfig(buf []byte) (cfg Config, err error) {
if cfg.ChanColWidth <= 0 {
cfg.ChanColWidth = 16
}
+ if cfg.MemberColWidth <= 0 {
+ cfg.MemberColWidth = 16
+ }
return
}