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 } }