Use upstream ISUPPORT map for NETWORK

This commit is contained in:
Simon Ser 2021-03-15 23:08:19 +01:00
parent 2992ff79c4
commit 62d4bf2813
2 changed files with 2 additions and 5 deletions

View File

@ -880,8 +880,8 @@ func (dc *downstreamConn) welcome() error {
fmt.Sprintf("CHATHISTORY=%v", dc.srv.HistoryLimit),
}
if uc := dc.upstream(); uc != nil && uc.networkName != "" {
isupport = append(isupport, fmt.Sprintf("NETWORK=%v", uc.networkName))
if uc := dc.upstream(); uc != nil && uc.isupport["NETWORK"] != nil {
isupport = append(isupport, fmt.Sprintf("NETWORK=%v", *uc.isupport["NETWORK"]))
}
dc.SendMessage(&irc.Message{

View File

@ -78,7 +78,6 @@ type upstreamConn struct {
user *user
serverName string
networkName string
availableUserModes string
availableChannelModes map[byte]channelModeType
availableChannelTypes string
@ -648,8 +647,6 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
if err := uc.handleMemberships(value); err != nil {
return err
}
case "NETWORK":
uc.networkName = value
}
}
}