Changeset 461 in code


Ignore:
Timestamp:
Mar 15, 2021, 10:08:19 PM (4 years ago)
Author:
contact
Message:

Use upstream ISUPPORT map for NETWORK

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r456 r461  
    881881        }
    882882
    883         if uc := dc.upstream(); uc != nil && uc.networkName != "" {
    884                 isupport = append(isupport, fmt.Sprintf("NETWORK=%v", uc.networkName))
     883        if uc := dc.upstream(); uc != nil && uc.isupport["NETWORK"] != nil {
     884                isupport = append(isupport, fmt.Sprintf("NETWORK=%v", *uc.isupport["NETWORK"]))
    885885        }
    886886
  • trunk/upstream.go

    r460 r461  
    7979
    8080        serverName            string
    81         networkName           string
    8281        availableUserModes    string
    8382        availableChannelModes map[byte]channelModeType
     
    649648                                                return err
    650649                                        }
    651                                 case "NETWORK":
    652                                         uc.networkName = value
    653650                                }
    654651                        }
Note: See TracChangeset for help on using the changeset viewer.