diff --git a/User.cpp b/User.cpp index 6e4d4458..a906ed91 100644 --- a/User.cpp +++ b/User.cpp @@ -388,7 +388,7 @@ void CUser::SetIRCSocket(CIRCSock* pIRCSock) { bool CUser::IsIRCConnected() const { const CIRCSock* pSock = GetIRCSock(); - return (pSock && pSock->IsConnected()); + return (pSock && pSock->IsAuthed()); } void CUser::IRCDisconnected() { diff --git a/User.h b/User.h index e61ca75d..3cbd142d 100644 --- a/User.h +++ b/User.h @@ -110,6 +110,9 @@ public: CString GetLocalIP(); CString GetLocalDCCIP(); + + /** This method will return whether the user is connected and authenticated to an IRC server. + */ bool IsIRCConnected() const; void SetIRCSocket(CIRCSock* pIRCSock); void IRCDisconnected();