mirror of
https://github.com/znc/znc.git
synced 2026-07-03 00:11:59 +02:00
Rename (non-) KeepBuffer to AutoClearChanBuffer.
It should be a less confusing name...
This commit is contained in:
@@ -89,7 +89,7 @@ public:
|
||||
const vector<CChan *>& vChans = m_pNetwork->GetChans();
|
||||
for (u_int a = 0; a < vChans.size(); a++)
|
||||
{
|
||||
if (!vChans[a]->KeepBuffer())
|
||||
if (vChans[a]->AutoClearChanBuffer())
|
||||
continue;
|
||||
|
||||
if (!BootStrap(vChans[a]))
|
||||
@@ -154,7 +154,7 @@ public:
|
||||
CString sPath = GetPath(vChans[a]->GetName());
|
||||
CFile File(sPath);
|
||||
|
||||
if (!vChans[a]->KeepBuffer()) {
|
||||
if (vChans[a]->AutoClearChanBuffer()) {
|
||||
File.Delete();
|
||||
continue;
|
||||
}
|
||||
@@ -268,8 +268,8 @@ public:
|
||||
|
||||
void AddBuffer(CChan& chan, const CString &sLine)
|
||||
{
|
||||
// If they have keep buffer disabled, only add messages if no client is connected
|
||||
if (!chan.KeepBuffer() && m_pNetwork->IsUserAttached())
|
||||
// If they have AutoClearChanBuffer enabled, only add messages if no client is connected
|
||||
if (chan.AutoClearChanBuffer() && m_pNetwork->IsUserAttached())
|
||||
return;
|
||||
chan.AddBuffer(sLine);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user