Use upstream ISUPPORT map for NETWORK
git-svn-id: file:///srv/svn/repo/suika/trunk@461 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
f21599af1d
commit
b8b77b8f0b
@ -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{
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user