From 2f495e9768e8e2ce1e8d83cd6d6bce5217092ede Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 16 Oct 2021 11:42:32 +0200 Subject: [PATCH] Remove unused REGISTRATION_IS_COMPLETED in handleMessageUnregistered downstreamConn.handleMessageUnregistered is only called when the user isn't registered. --- downstream.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/downstream.go b/downstream.go index da02f44..53ed31d 100644 --- a/downstream.go +++ b/downstream.go @@ -680,12 +680,6 @@ func (dc *downstreamConn) handleMessageUnregistered(msg *irc.Message) error { return err } - if dc.registered { - return ircError{&irc.Message{ - Command: "FAIL", - Params: []string{"BOUNCER", "REGISTRATION_IS_COMPLETED", "BIND", "Cannot bind bouncer network after registration"}, - }} - } if dc.user == nil { return ircError{&irc.Message{ Command: "FAIL",