Send BOUNCER REGISTRATION_IS_COMPLETED error

This commit is contained in:
Simon Ser 2021-10-16 11:41:37 +02:00
parent 350057e60b
commit ade59beb8c

View File

@ -2249,6 +2249,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
} }
switch strings.ToUpper(subcommand) { 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": case "LISTNETWORKS":
dc.SendBatch("soju.im/bouncer-networks", nil, nil, func(batchRef irc.TagValue) { dc.SendBatch("soju.im/bouncer-networks", nil, nil, func(batchRef irc.TagValue) {
dc.user.forEachNetwork(func(network *network) { dc.user.forEachNetwork(func(network *network) {