Don't send connection status NOTICEs with bouncer-networks

This commit is contained in:
Simon Ser 2021-03-10 11:44:10 +01:00
parent 31f2d28508
commit f37a47cc4e

View File

@ -524,7 +524,7 @@ func (u *user) run() {
Command: "BOUNCER", Command: "BOUNCER",
Params: []string{"NETWORK", netIDStr, "status=connected"}, Params: []string{"NETWORK", netIDStr, "status=connected"},
}) })
} else { } else if !dc.caps["soju.im/bouncer-networks"] {
sendServiceNOTICE(dc, fmt.Sprintf("connected to %s", uc.network.GetName())) sendServiceNOTICE(dc, fmt.Sprintf("connected to %s", uc.network.GetName()))
} }