Merge pull request #990 from jpnurmi/reset

Allow reseting channel specific AutoClearChanBuffer & Buffer settings
This commit is contained in:
J-P Nurmi
2015-08-01 12:30:36 +02:00
3 changed files with 23 additions and 4 deletions

View File

@@ -262,6 +262,11 @@ void CChan::InheritAutoClearChanBuffer(bool b) {
}
}
void CChan::ResetAutoClearChanBuffer() {
SetAutoClearChanBuffer(m_pNetwork->GetUser()->AutoClearChanBuffer());
m_bHasAutoClearChanBufferSet = false;
}
void CChan::OnWho(const CString& sNick, const CString& sIdent, const CString& sHost) {
CNick* pNick = FindNick(sNick);
@@ -656,3 +661,8 @@ void CChan::SetInConfig(bool b) {
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE);
}
}
void CChan::ResetBufferCount() {
SetBufferCount(m_pNetwork->GetUser()->GetBufferCount());
m_bHasBufferCountSet = false;
}