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:
psychon
2009-01-24 19:10:05 +00:00
parent 620c72a2ac
commit 74f9f3e864
-8
View File
@@ -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++)