Fix parsing upstream RPL_INVITING messages

Previously, we did not skip the first RPL_INVITING parameter, which is
the user nick (like in all replies), which made the parsing for that
reply incorrect.

This fixes RPL_INVITING parsing by skipping the first parameter.
This commit is contained in:
delthas 2020-05-27 23:46:27 +02:00 committed by Simon Ser
parent f4e0c51366
commit b1367a0608

View File

@ -1177,7 +1177,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
})
case irc.RPL_INVITING:
var nick, channel string
if err := parseMessageParams(msg, &nick, &channel); err != nil {
if err := parseMessageParams(msg, nil, &nick, &channel); err != nil {
return err
}