From de02cb98fe0e45d5e2a0f048cda0735028a6ec60 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 5 Apr 2023 13:36:36 +0200 Subject: [PATCH] downstream: return FAIL on unknown BOUNCER command before registration --- downstream.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/downstream.go b/downstream.go index b091e76..84fe098 100644 --- a/downstream.go +++ b/downstream.go @@ -740,6 +740,11 @@ func (dc *downstreamConn) handleMessageUnregistered(ctx context.Context, msg *ir } dc.registration.networkID = id + default: + return ircError{&irc.Message{ + Command: "FAIL", + Params: []string{"BOUNCER", "UNKNOWN_COMMAND", subcommand, "Unknown subcommand"}, + }} } default: dc.logger.Printf("unhandled message: %v", msg)