forked from External/ergo
restapi: Initial commit
This commit is contained in:
parent
4402e3e3aa
commit
ee3853f845
6 changed files with 110 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue