mirror of
https://github.com/znc/znc.git
synced 2026-08-03 23:43:42 +02:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user