Set mode +o on admins for bouncer-only connections

git-svn-id: file:///srv/svn/repo/suika/trunk@671 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-11-03 20:42:42 +00:00
parent 9d67b78657
commit 53c9b0049b

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