ResetJoinTries once we enable a channel

Fixes #83
This commit is contained in:
Kyle Fuller
2012-03-21 21:57:56 +00:00
parent 63a5de1331
commit 90896da6a7
3 changed files with 6 additions and 2 deletions
+5
View File
@@ -605,3 +605,8 @@ void CChan::SendBuffer(CClient* pClient) {
}
}
}
void CChan::Enable() {
ResetJoinTries();
m_bDisabled = false;
}
+1 -1
View File
@@ -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
-1
View File
@@ -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);