Changeset 301 in code for trunk/downstream.go
- Timestamp:
- May 27, 2020, 9:46:31 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/downstream.go
r299 r301 959 959 return 960 960 } 961 uc.SendMessage (&irc.Message{961 uc.SendMessageLabeled(dc.id, &irc.Message{ 962 962 Command: "NICK", 963 963 Params: []string{nick}, … … 999 999 params = append(params, key) 1000 1000 } 1001 uc.SendMessage (&irc.Message{1001 uc.SendMessageLabeled(dc.id, &irc.Message{ 1002 1002 Command: "JOIN", 1003 1003 Params: params, … … 1041 1041 params = append(params, reason) 1042 1042 } 1043 uc.SendMessage (&irc.Message{1043 uc.SendMessageLabeled(dc.id, &irc.Message{ 1044 1044 Command: "PART", 1045 1045 Params: params, … … 1102 1102 params = append(params, reason) 1103 1103 } 1104 uc.SendMessage (&irc.Message{1104 uc.SendMessageLabeled(dc.id, &irc.Message{ 1105 1105 Command: "KICK", 1106 1106 Params: params, … … 1121 1121 if modeStr != "" { 1122 1122 dc.forEachUpstream(func(uc *upstreamConn) { 1123 uc.SendMessage (&irc.Message{1123 uc.SendMessageLabeled(dc.id, &irc.Message{ 1124 1124 Command: "MODE", 1125 1125 Params: []string{uc.nick, modeStr}, … … 1151 1151 params := []string{upstreamName, modeStr} 1152 1152 params = append(params, msg.Params[2:]...) 1153 uc.SendMessage (&irc.Message{1153 uc.SendMessageLabeled(dc.id, &irc.Message{ 1154 1154 Command: "MODE", 1155 1155 Params: params, … … 1200 1200 if len(msg.Params) > 1 { // setting topic 1201 1201 topic := msg.Params[1] 1202 uc.SendMessage (&irc.Message{1202 uc.SendMessageLabeled(dc.id, &irc.Message{ 1203 1203 Command: "TOPIC", 1204 1204 Params: []string{upstreamChannel, topic}, … … 1418 1418 unmarshaledText = dc.unmarshalText(uc, text) 1419 1419 } 1420 uc.SendMessage (&irc.Message{1420 uc.SendMessageLabeled(dc.id, &irc.Message{ 1421 1421 Command: "PRIVMSG", 1422 1422 Params: []string{upstreamName, unmarshaledText}, … … 1452 1452 unmarshaledText = dc.unmarshalText(uc, text) 1453 1453 } 1454 uc.SendMessage (&irc.Message{1454 uc.SendMessageLabeled(dc.id, &irc.Message{ 1455 1455 Command: "NOTICE", 1456 1456 Params: []string{upstreamName, unmarshaledText},
Note:
See TracChangeset
for help on using the changeset viewer.