aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-28 10:39:37 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-28 10:39:37 +0100
commit21dc026a81bc623737c8cd118b57b2152c9e7d45 (patch)
tree1f10018b9de6ddc4236b5255a6ad16d8bcfb5e65
parent8668b12a811c79e4ea759616daf645080d7d763d (diff)
downloadeasybridge-21dc026a81bc623737c8cd118b57b2152c9e7d45.tar.gz
easybridge-21dc026a81bc623737c8cd118b57b2152c9e7d45.zip
Make protocol name/account name search case insensitive
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index f5a5db0..55b6789 100644
--- a/server.go
+++ b/server.go
@@ -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
}
}