only fill the buffer if its empty

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@155 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-04-19 20:50:24 +00:00
parent 3fe14f6ed2
commit 58b5a580e3
+6
View File
@@ -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 ) )