1
0
Fork 0
forked from External/ergo

Add MONITOR command

This commit is contained in:
Daniel Oaks 2016-10-16 20:14:56 +10:00
parent 859d0cd607
commit 1bab81091f
10 changed files with 266 additions and 21 deletions

View file

@ -43,6 +43,15 @@ func NewClientLookupSet() *ClientLookupSet {
}
}
func (clients *ClientLookupSet) Has(nick string) bool {
casefoldedName, err := CasefoldName(nick)
if err == nil {
return false
}
_, exists := clients.byNick[casefoldedName]
return exists
}
func (clients *ClientLookupSet) Get(nick string) *Client {
casefoldedName, err := CasefoldName(nick)
if err == nil {