Changeset 278 in code for trunk/upstream.go
- Timestamp:
- Apr 29, 2020, 5:45:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r277 r278 48 48 channels map[string]*upstreamChannel 49 49 supportedCaps map[string]string 50 caps map[string]bool 50 51 batches map[string]batch 51 52 away bool 52 53 tagsSupported bool 54 awayNotifySupported bool 55 labelsSupported bool 56 nextLabelID uint64 53 nextLabelID uint64 57 54 58 55 saslClient sasl.Client … … 112 109 channels: make(map[string]*upstreamChannel), 113 110 supportedCaps: make(map[string]string), 111 caps: make(map[string]bool), 114 112 batches: make(map[string]batch), 115 113 availableChannelTypes: stdChannelTypes, … … 1283 1281 1284 1282 func (uc *upstreamConn) handleCapAck(name string, ok bool) error { 1283 uc.caps[name] = ok 1284 1285 1285 switch name { 1286 1286 case "sasl": … … 1303 1303 Params: []string{auth.Mechanism}, 1304 1304 }) 1305 case "message-tags": 1306 uc.tagsSupported = ok 1307 case "labeled-response": 1308 uc.labelsSupported = ok 1309 case "away-notify": 1310 uc.awayNotifySupported = ok 1311 case "batch", "server-time": 1305 case "message-tags", "labeled-response", "away-notify", "batch", "server-time": 1312 1306 // Nothing to do 1313 1307 default: … … 1333 1327 1334 1328 func (uc *upstreamConn) SendMessageLabeled(downstreamID uint64, msg *irc.Message) { 1335 if uc. labelsSupported{1329 if uc.caps["labeled-response"] { 1336 1330 if msg.Tags == nil { 1337 1331 msg.Tags = make(map[string]irc.TagValue)
Note:
See TracChangeset
for help on using the changeset viewer.