We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dfa1be commit 6a49b11Copy full SHA for 6a49b11
server/configuration.go
@@ -75,7 +75,11 @@ func (p *Plugin) setConfiguration(configuration *configuration) {
75
MsgTypes := strings.Split(strings.TrimSpace(configuration.AlwaysAllowMsgTypes), ",")
76
p.AlwaysAllowMsgTypes = make(map[string]bool)
77
for _, v := range MsgTypes {
78
- p.AlwaysAllowMsgTypes[strings.TrimSpace(v)] = true
+ v = strings.TrimSpace(v)
79
+ if len(v) == 0 {
80
+ continue
81
+ }
82
+ p.AlwaysAllowMsgTypes[v] = true
83
}
84
85
0 commit comments