aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-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
}
}