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