Skip to content

Commit

Permalink
Merge pull request #198 from gempir/fix/failed-login-new-message
Browse files Browse the repository at this point in the history
fix: failed login can return a message we don't handle
  • Loading branch information
pajlada authored Mar 2, 2024
2 parents e01cb7b + 1475dbe commit 81d96cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ func (c *Client) handleLine(line string) error {

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" {
if msg.Message == "Login authentication failed" || msg.Message == "Improperly formatted auth" || msg.Message == "Invalid NICK" || msg.Message == "Login unsuccessful" {
return ErrLoginAuthenticationFailed
}
}
Expand Down

0 comments on commit 81d96cf

Please sign in to comment.