Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit bb79c8ab916fcb117074415dc826efa13d0afbd1 Author: Wim <wim@42.be> Date: Tue Apr 21 20:42:11 2020 +0000 Lowercase account names. Fixes #1108 (#1110) diff --git a/gateway/gateway.go b/gateway/gateway.go index 1e958a8..27265d1 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -1087 +1087 @@ 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   }