Remove unused REGISTRATION_IS_COMPLETED in handleMessageUnregistered

downstreamConn.handleMessageUnregistered is only called when the
user isn't registered.
This commit is contained in:
Simon Ser 2021-10-16 11:42:32 +02:00
parent ade59beb8c
commit 2f495e9768

View File

@ -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",