downstream: return FAIL on unknown BOUNCER command before registration
This commit is contained in:
parent
41399ca6fd
commit
de02cb98fe
@ -740,6 +740,11 @@ func (dc *downstreamConn) handleMessageUnregistered(ctx context.Context, msg *ir
|
|||||||
}
|
}
|
||||||
|
|
||||||
dc.registration.networkID = id
|
dc.registration.networkID = id
|
||||||
|
default:
|
||||||
|
return ircError{&irc.Message{
|
||||||
|
Command: "FAIL",
|
||||||
|
Params: []string{"BOUNCER", "UNKNOWN_COMMAND", subcommand, "Unknown subcommand"},
|
||||||
|
}}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
dc.logger.Printf("unhandled message: %v", msg)
|
dc.logger.Printf("unhandled message: %v", msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user