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()); }