From 90d74d0d2c426366bae5cf6948359635e5e17337 Mon Sep 17 00:00:00 2001 From: Frederick Robinson Date: Sun, 5 Nov 2023 20:07:15 -0800 Subject: [PATCH] expose clientHasQuit error --- ircevent/irc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircevent/irc.go b/ircevent/irc.go index b7e5641..1744a8b 100644 --- a/ircevent/irc.go +++ b/ircevent/irc.go @@ -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: @@ -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