Use upstream ISUPPORT map for NETWORK
This commit is contained in:
parent
2992ff79c4
commit
62d4bf2813
@ -880,8 +880,8 @@ func (dc *downstreamConn) welcome() error {
|
|||||||
fmt.Sprintf("CHATHISTORY=%v", dc.srv.HistoryLimit),
|
fmt.Sprintf("CHATHISTORY=%v", dc.srv.HistoryLimit),
|
||||||
}
|
}
|
||||||
|
|
||||||
if uc := dc.upstream(); uc != nil && uc.networkName != "" {
|
if uc := dc.upstream(); uc != nil && uc.isupport["NETWORK"] != nil {
|
||||||
isupport = append(isupport, fmt.Sprintf("NETWORK=%v", uc.networkName))
|
isupport = append(isupport, fmt.Sprintf("NETWORK=%v", *uc.isupport["NETWORK"]))
|
||||||
}
|
}
|
||||||
|
|
||||||
dc.SendMessage(&irc.Message{
|
dc.SendMessage(&irc.Message{
|
||||||
|
@ -78,7 +78,6 @@ type upstreamConn struct {
|
|||||||
user *user
|
user *user
|
||||||
|
|
||||||
serverName string
|
serverName string
|
||||||
networkName string
|
|
||||||
availableUserModes string
|
availableUserModes string
|
||||||
availableChannelModes map[byte]channelModeType
|
availableChannelModes map[byte]channelModeType
|
||||||
availableChannelTypes string
|
availableChannelTypes string
|
||||||
@ -648,8 +647,6 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
|
|||||||
if err := uc.handleMemberships(value); err != nil {
|
if err := uc.handleMemberships(value); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case "NETWORK":
|
|
||||||
uc.networkName = value
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user