Changeset 552 in code for trunk/upstream.go
- Timestamp:
- Jun 9, 2021, 7:29:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r540 r552 104 104 // set of LIST commands in progress, per downstream 105 105 pendingLISTDownstreamSet map[uint64]struct{} 106 107 gotMotd bool 106 108 } 107 109 … … 663 665 uc.nickCM = uc.network.casemap(uc.nick) 664 666 } 667 668 if !uc.gotMotd { 669 // Ignore the initial MOTD upon connection, but forward 670 // subsequent MOTD messages downstream 671 uc.gotMotd = true 672 return nil 673 } 674 675 uc.forEachDownstreamByID(downstreamID, func (dc *downstreamConn) { 676 dc.SendMessage(&irc.Message { 677 Prefix: uc.srv.prefix(), 678 Command: msg.Command, 679 Params: msg.Params, 680 }) 681 }) 665 682 case "BATCH": 666 683 var tag string … … 1422 1439 // Ignore 1423 1440 case irc.RPL_MOTDSTART, irc.RPL_MOTD: 1424 // Ignore 1441 if !uc.gotMotd { 1442 return nil 1443 } 1444 1445 uc.forEachDownstreamByID(downstreamID, func (dc *downstreamConn) { 1446 dc.SendMessage(&irc.Message { 1447 Prefix: uc.srv.prefix(), 1448 Command: msg.Command, 1449 Params: msg.Params, 1450 }) 1451 }) 1425 1452 case irc.RPL_LISTSTART: 1426 1453 // Ignore
Note:
See TracChangeset
for help on using the changeset viewer.