From 74f9f3e864ce433501ef4e3696f6455420e12c21 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 24 Jan 2009 19:10:05 +0000 Subject: [PATCH] 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 --- modules/savebuff.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index bd4c0fe5..a22bae73 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -133,14 +133,6 @@ public: const vector & 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++)