mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-07 02:43:05 +03:00
lowercase prefix
This commit is contained in:
parent
21abb26040
commit
1bf8f73eb2
@ -237,7 +237,7 @@ func (s *Server) List(prefix *string) []string {
|
|||||||
r := []string{}
|
r := []string{}
|
||||||
|
|
||||||
for name := range s.clients {
|
for name := range s.clients {
|
||||||
if prefix != nil && !strings.HasPrefix(name, *prefix) {
|
if prefix != nil && !strings.HasPrefix(name, strings.ToLower(*prefix)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
r = append(r, name)
|
r = append(r, name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user