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:
parent
f4e0c51366
commit
b1367a0608
@ -1177,7 +1177,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
|
|||||||
})
|
})
|
||||||
case irc.RPL_INVITING:
|
case irc.RPL_INVITING:
|
||||||
var nick, channel string
|
var nick, channel string
|
||||||
if err := parseMessageParams(msg, &nick, &channel); err != nil {
|
if err := parseMessageParams(msg, nil, &nick, &channel); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user