diff options
author | Wim <wim@42.be> | 2020-04-21 20:42:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 20:42:11 +0200 |
commit | 06b7bad7146607f46652c9bd766de3f95028c370 (patch) | |
tree | 6a20fa45419d03d6118b79937b63aa036f5f3f75 | |
parent | 19eec2ed032f5f60086da1b318046113943575e3 (diff) | |
download | matterbridge-msglm-06b7bad7146607f46652c9bd766de3f95028c370.tar.gz matterbridge-msglm-06b7bad7146607f46652c9bd766de3f95028c370.tar.bz2 matterbridge-msglm-06b7bad7146607f46652c9bd766de3f95028c370.zip |
Lowercase account names. Fixes #1108 (#1110)
-rw-r--r-- | gateway/gateway.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 1e958a86..27265d15 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -108,7 +108,7 @@ func (gw *Gateway) AddBridge(cfg *config.Bridge) error { func (gw *Gateway) checkConfig(cfg *config.Bridge) { match := false for _, key := range gw.Router.Config.Viper().AllKeys() { - if strings.HasPrefix(key, cfg.Account) { + if strings.HasPrefix(key, strings.ToLower(cfg.Account)) { match = true break } |