From 58b5a580e344633aaaf9b6c4143c102b522ad51d Mon Sep 17 00:00:00 2001 From: imaginos Date: Tue, 19 Apr 2005 20:50:24 +0000 Subject: [PATCH] only fill the buffer if its empty git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@155 726aef4b-f618-498e-8847-2d620e286838 --- modules/savebuff.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index 779c94d1..3fc4a836 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -26,6 +26,9 @@ * better solution then plain text. * * $Log$ + * Revision 1.11 2005/04/19 20:50:24 imaginos + * only fill the buffer if its empty + * * Revision 1.10 2005/04/18 22:56:42 prozacx * Call OnBoot() in OnLoad() again since closing stdout bug is now fixed * @@ -140,6 +143,9 @@ public: string sFile; if ( DecryptChannel( pChan->GetName(), sFile ) ) { + if ( !vChans[a]->GetBuffer().empty() ) + return( true ); // reloaded a module probably in this case, so just verify we can decrypt the file + string sLine; u_int iPos = 0; while( ReadLine( sFile, sLine, iPos ) )