1
0
Fork 0
forked from External/ergo

Only allow valid snomasks to be set

This commit is contained in:
Daniel Oaks 2018-04-16 13:20:37 +10:00
parent 22f9df388d
commit 5811226760
3 changed files with 26 additions and 1 deletions

View file

@ -27,6 +27,11 @@ func (m *SnoManager) AddMasks(client *Client, masks ...sno.Mask) {
defer m.sendListMutex.Unlock()
for _, mask := range masks {
// confirm mask is valid
if !sno.ValidMasks[mask] {
continue
}
currentClientList := m.sendLists[mask]
if currentClientList == nil {