Simplify if block in ISUPPORT handler
This commit is contained in:
parent
ffd142f8dd
commit
ff2cd9423f
@ -619,12 +619,10 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
|
||||
if strings.HasPrefix(token, "-") {
|
||||
negate = true
|
||||
token = token[1:]
|
||||
} else {
|
||||
if i := strings.IndexByte(token, '='); i >= 0 {
|
||||
} else if i := strings.IndexByte(token, '='); i >= 0 {
|
||||
parameter = token[:i]
|
||||
value = token[i+1:]
|
||||
}
|
||||
}
|
||||
if !negate {
|
||||
switch parameter {
|
||||
case "CHANMODES":
|
||||
|
Loading…
Reference in New Issue
Block a user