cut down scan spam

slack
Jordan Orelli 10 years ago
parent 8100e5e6df
commit 51409c4f56

@ -23,11 +23,11 @@ type scanResult struct {
}
func (r *scanResult) Empty() bool {
return r.players == nil && r.colonizedBy == nil
return (r.players == nil || len(r.players) == 0) && r.colonizedBy == nil
}
func (r *scanResult) playerNames() []string {
if r.players == nil {
if r.players == nil || len(r.players) == 0 {
return nil
}
names := make([]string, 0, len(r.players))

Loading…
Cancel
Save