diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-28 10:39:37 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-28 10:39:37 +0100 |
commit | 21dc026a81bc623737c8cd118b57b2152c9e7d45 (patch) | |
tree | 1f10018b9de6ddc4236b5255a6ad16d8bcfb5e65 | |
parent | 8668b12a811c79e4ea759616daf645080d7d763d (diff) | |
download | easybridge-21dc026a81bc623737c8cd118b57b2152c9e7d45.tar.gz easybridge-21dc026a81bc623737c8cd118b57b2152c9e7d45.zip |
Make protocol name/account name search case insensitive
-rw-r--r-- | server.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -247,7 +247,7 @@ func handleSystemMessage(mxid string, msg string) { func findAccount(mxid string, q string) *Account { if accts, ok := registeredAccounts[mxid]; ok { for name, acct := range accts { - if name == q || acct.Protocol == q { + if strings.EqualFold(name, q) || strings.EqualFold(acct.Protocol, q) { return acct } } |