From 21dc026a81bc623737c8cd118b57b2152c9e7d45 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 28 Feb 2020 10:39:37 +0100 Subject: [PATCH] Make protocol name/account name search case insensitive --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }