Make protocol name/account name search case insensitive
This commit is contained in:
parent
8668b12a81
commit
21dc026a81
1 changed files with 1 additions and 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue