Set mode +o on admins for bouncer-only connections

This commit is contained in:
Simon Ser 2021-11-03 21:41:29 +01:00
parent abe5f362db
commit 26cdb0d328
1 changed files with 7 additions and 0 deletions

View File

@ -1214,6 +1214,13 @@ func (dc *downstreamConn) welcome() error {
Params: []string{dc.nick, string(uc.modes)},
})
}
if dc.network == nil && dc.caps["soju.im/bouncer-networks"] && dc.user.Admin {
dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(),
Command: irc.RPL_UMODEIS,
Params: []string{dc.nick, "+o"},
})
}
if motd := dc.user.srv.MOTD(); motd != "" && dc.network == nil {
for _, msg := range generateMOTD(dc.srv.prefix(), dc.nick, motd) {