From 26cdb0d328ca3d2308ea72b0dc5ba5a612e4c435 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 3 Nov 2021 21:41:29 +0100 Subject: [PATCH] Set mode +o on admins for bouncer-only connections --- downstream.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/downstream.go b/downstream.go index f7de0ee..95f65fd 100644 --- a/downstream.go +++ b/downstream.go @@ -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) {