mirror of
https://github.com/znc/znc.git
synced 2026-06-23 03:25:51 +02:00
Savebuff: Don't reload old channel buffers
Channel buffers are loaded from disk when we join a channel (OnJoin) and when the module is loaded (OnBoot(), called from OnLoad()) and only if KeepBuffer for that channel is turned on. So every case is handled. If we now also load channel buffers in SaveBufferToDisk() we will only reload old channel buffers which were deleted since then (e.g. /msg *status clearallchannelbuffers). Thanks to Julian for finding this bug and helping me debug. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1345 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -133,14 +133,6 @@ public:
|
||||
|
||||
const vector<CString> & vBuffer = vChans[a]->GetBuffer();
|
||||
|
||||
if (vBuffer.empty())
|
||||
{
|
||||
if (!m_sPassword.empty())
|
||||
BootStrap(vChans[a]);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
CString sFile = CRYPT_VERIFICATION_TOKEN;
|
||||
|
||||
for (u_int b = 0; b < vBuffer.size(); b++)
|
||||
|
||||
Reference in New Issue
Block a user