mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +02:00
@@ -605,3 +605,8 @@ void CChan::SendBuffer(CClient* pClient) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CChan::Enable() {
|
||||
ResetJoinTries();
|
||||
m_bDisabled = false;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
void SetInConfig(bool b) { m_bInConfig = b; }
|
||||
void SetCreationDate(unsigned long u) { m_ulCreationDate = u; }
|
||||
void Disable() { m_bDisabled = true; }
|
||||
void Enable() { m_bDisabled = false; }
|
||||
void Enable();
|
||||
void IncJoinTries() { m_uJoinTries++; }
|
||||
void ResetJoinTries() { m_uJoinTries = 0; }
|
||||
// !Setters
|
||||
|
||||
@@ -469,7 +469,6 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
m_pUser->AddChan(sChan, false);
|
||||
pChan = m_pUser->FindChan(sChan);
|
||||
if (pChan) {
|
||||
pChan->ResetJoinTries();
|
||||
pChan->Enable();
|
||||
pChan->SetIsOn(true);
|
||||
PutIRC("MODE " + sChan);
|
||||
|
||||
Reference in New Issue
Block a user