Make the CUser::IsIRCConnected method check if the IRC connection is authed because may of its callers expect this behaviour.

This fixes a bug reported by Robby where a channel could become disabled while a the user is connected to irc, but before they have authenticated.
This commit is contained in:
Kyle Fuller
2011-07-29 19:21:25 +01:00
parent 9685f16b96
commit 90f741d2ca
2 changed files with 4 additions and 1 deletions

View File

@@ -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() {