From ade59beb8c16ca47c18da7df79ccc3bc44d8694e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 16 Oct 2021 11:41:37 +0200 Subject: [PATCH] Send BOUNCER REGISTRATION_IS_COMPLETED error --- downstream.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/downstream.go b/downstream.go index ef1e9e2..da02f44 100644 --- a/downstream.go +++ b/downstream.go @@ -2249,6 +2249,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error { } switch strings.ToUpper(subcommand) { + case "BIND": + return ircError{&irc.Message{ + Command: "FAIL", + Params: []string{"BOUNCER", "REGISTRATION_IS_COMPLETED", "BIND", "Cannot bind to a network after registration"}, + }} case "LISTNETWORKS": dc.SendBatch("soju.im/bouncer-networks", nil, nil, func(batchRef irc.TagValue) { dc.user.forEachNetwork(func(network *network) {