Changeset 406 in code for trunk/user.go
- Timestamp:
- Aug 20, 2020, 3:38:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user.go
r399 r406 52 52 53 53 type networkHistory struct { 54 offlineClients map[string]uint64 // indexed by client name55 ring 54 clients map[string]uint64 // indexed by client name 55 ring *Ring // can be nil if there are no offline clients 56 56 } 57 57 … … 194 194 net.forEachDownstream(func(dc *downstreamConn) { 195 195 net.offlineClients[dc.clientName] = struct{}{} 196 if history != nil {197 history.offlineClients[dc.clientName] = history.ring.Cur()198 }199 196 200 197 dc.SendMessage(&irc.Message{ … … 424 421 425 422 net.offlineClients[dc.clientName] = struct{}{} 426 for target, history := range net.history {427 if ch, ok := net.channels[target]; ok && ch.Detached {428 continue429 }430 history.offlineClients[dc.clientName] = history.ring.Cur()431 }432 423 }) 433 424
Note:
See TracChangeset
for help on using the changeset viewer.