Send BOUNCER REGISTRATION_IS_COMPLETED error

git-svn-id: file:///srv/svn/repo/suika/trunk@646 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-10-16 09:41:37 +00:00
parent 753f1704e5
commit 02449246d7

View File

@ -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) {