Changeset 259 in code for trunk/downstream.go
- Timestamp:
- Apr 16, 2020, 2:57:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/downstream.go
r258 r259 138 138 } 139 139 return name + "/" + uc.network.GetName() 140 }141 142 func (dc *downstreamConn) marshalChannel(uc *upstreamConn, name string) string {143 return dc.marshalEntity(uc, name)144 }145 146 func (dc *downstreamConn) marshalNick(uc *upstreamConn, name string) string {147 return dc.marshalEntity(uc, name)148 140 } 149 141 … … 244 236 case "NICK": 245 237 // Nick change for another user 246 msg.Params[0] = dc.marshal Nick(uc, msg.Params[0])238 msg.Params[0] = dc.marshalEntity(uc, msg.Params[0]) 247 239 case "JOIN", "PART": 248 msg.Params[0] = dc.marshal Channel(uc, msg.Params[0])240 msg.Params[0] = dc.marshalEntity(uc, msg.Params[0]) 249 241 case "KICK": 250 msg.Params[0] = dc.marshal Channel(uc, msg.Params[0])251 msg.Params[1] = dc.marshal Nick(uc, msg.Params[1])242 msg.Params[0] = dc.marshalEntity(uc, msg.Params[0]) 243 msg.Params[1] = dc.marshalEntity(uc, msg.Params[1]) 252 244 case "TOPIC": 253 msg.Params[0] = dc.marshal Channel(uc, msg.Params[0])245 msg.Params[0] = dc.marshalEntity(uc, msg.Params[0]) 254 246 case "MODE": 255 247 msg.Params[0] = dc.marshalEntity(uc, msg.Params[0]) … … 671 663 Prefix: dc.prefix(), 672 664 Command: "JOIN", 673 Params: []string{dc.marshal Channel(ch.conn, ch.Name)},665 Params: []string{dc.marshalEntity(ch.conn, ch.Name)}, 674 666 }) 675 667
Note:
See TracChangeset
for help on using the changeset viewer.