Set mode +o on admins for bouncer-only connections
This commit is contained in:
parent
abe5f362db
commit
26cdb0d328
@ -1214,6 +1214,13 @@ func (dc *downstreamConn) welcome() error {
|
|||||||
Params: []string{dc.nick, string(uc.modes)},
|
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 {
|
if motd := dc.user.srv.MOTD(); motd != "" && dc.network == nil {
|
||||||
for _, msg := range generateMOTD(dc.srv.prefix(), dc.nick, motd) {
|
for _, msg := range generateMOTD(dc.srv.prefix(), dc.nick, motd) {
|
||||||
|
Loading…
Reference in New Issue
Block a user