Merge branch 'master' of https://github.com/shazow/ssh-chat into version_make

This commit is contained in:
empathetic-alligator 2014-12-17 20:23:32 -05:00
commit 9127234acf

View File

@ -252,11 +252,11 @@ func (s *Server) List(prefix *string) []string {
s.RLock() s.RLock()
defer s.RUnlock() defer s.RUnlock()
for name := range s.clients { for name, client := 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, client.Name)
} }
return r return r