Send BOUNCER REGISTRATION_IS_COMPLETED error
This commit is contained in:
parent
350057e60b
commit
ade59beb8c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user