From 3d42554349f556be79af9fb9888224d001b8039e Mon Sep 17 00:00:00 2001 From: prozacx Date: Fri, 20 Feb 2009 05:50:36 +0000 Subject: [PATCH] Get rid of all extra lines, not just the first one git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1387 726aef4b-f618-498e-8847-2d620e286838 --- Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Buffer.cpp b/Buffer.cpp index 9ea3b43b..7b164687 100644 --- a/Buffer.cpp +++ b/Buffer.cpp @@ -34,7 +34,7 @@ int CBuffer::AddLine(const CString& sPre, const CString& sPost, bool bIncNick) { return 0; } - if (size() >= m_uLineCount) { + while (size() >= m_uLineCount) { erase(begin()); }