Add plus sign in RPL_UMODEIS reply

This commit is contained in:
Simon Ser 2021-11-03 22:02:19 +01:00
parent 26cdb0d328
commit c2047dc1a8

View File

@ -1211,7 +1211,7 @@ func (dc *downstreamConn) welcome() error {
dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(),
Command: irc.RPL_UMODEIS,
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 {
@ -1747,7 +1747,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
dc.SendMessage(&irc.Message{
Prefix: dc.srv.prefix(),
Command: irc.RPL_UMODEIS,
Params: []string{dc.nick, userMode},
Params: []string{dc.nick, "+" + userMode},
})
}
return nil