Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose clientHasQuit error #99

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ircevent/irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var (
NoLabeledResponse = errors.New("The server failed to send a labeled response to the command")

serverDidNotQuit = errors.New("server did not respond to QUIT")
clientHasQuit = errors.New("client has called Quit()")
ClientHasQuit = errors.New("client has called Quit()")
)

// Call this on an error forcing a disconnection:
Expand Down Expand Up @@ -613,7 +613,7 @@ func (irc *Connection) Connect() (err error) {
defer irc.stateMutex.Unlock()

if irc.quit {
return clientHasQuit // check this again in case of Quit() while we were asleep
return ClientHasQuit // check this again in case of Quit() while we were asleep
}

// mark Server as stopped since there can be an error during connect
Expand Down