1
0
Fork 0
forked from External/ergo

restapi: Initial commit

This commit is contained in:
Daniel Oaks 2016-11-06 11:05:29 +10:00
parent 4402e3e3aa
commit ee3853f845
6 changed files with 110 additions and 0 deletions

View file

@ -43,6 +43,10 @@ func NewClientLookupSet() *ClientLookupSet {
}
}
func (clients *ClientLookupSet) Count() int {
return len(clients.ByNick)
}
func (clients *ClientLookupSet) Has(nick string) bool {
casefoldedName, err := CasefoldName(nick)
if err == nil {