- Timestamp:
- Mar 17, 2020, 3:15:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/downstream.go
r112 r113 253 253 // The message comes from our connection, don't echo it 254 254 // back 255 consumer.Consume() 255 256 continue 256 257 } … … 904 905 }) 905 906 907 echoMsg := &irc.Message{ 908 Prefix: &irc.Prefix{ 909 Name: uc.nick, 910 User: uc.username, 911 }, 912 Command: "PRIMSG", 913 Params: []string{upstreamName, text}, 914 } 906 915 dc.lock.Lock() 907 dc.ourMessages[ msg] = struct{}{}916 dc.ourMessages[echoMsg] = struct{}{} 908 917 dc.lock.Unlock() 909 918 910 uc.ring.Produce( msg)919 uc.ring.Produce(echoMsg) 911 920 } 912 921 default:
Note:
See TracChangeset
for help on using the changeset viewer.