Simplify if block in ISUPPORT handler
This commit is contained in:
parent
ffd142f8dd
commit
ff2cd9423f
@ -619,11 +619,9 @@ 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 {
|
||||
parameter = token[:i]
|
||||
value = token[i+1:]
|
||||
}
|
||||
} else if i := strings.IndexByte(token, '='); i >= 0 {
|
||||
parameter = token[:i]
|
||||
value = token[i+1:]
|
||||
}
|
||||
if !negate {
|
||||
switch parameter {
|
||||
|
Loading…
Reference in New Issue
Block a user