gempir / go-twitch-irc

go irc client for twitch.tv
MIT License
356 stars 59 forks source link

reconnect loop when Login unsuccessful #197

Closed lankycraig closed 7 months ago

lankycraig commented 7 months ago

Using the wrong type of outh token gives a irc message of Login unsuccessful creating a loop to constantly reconnect

client.go line 1096 added || msg.Message == "Login unsuccessful"

func (c Client) handleNoticeMessage(msg NoticeMessage) error { if msg.Channel == "" { if msg.Message == "Login authentication failed" || msg.Message == "Improperly formatted auth" || msg.Message == "Invalid NICK" || msg.Message == "Login unsuccessful" { return ErrLoginAuthenticationFailed } }

return nil

}