diff options
Diffstat (limited to '')
-rw-r--r-- | bouncer/window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bouncer/window.cpp b/bouncer/window.cpp index 1f6aa4a..04689f5 100644 --- a/bouncer/window.cpp +++ b/bouncer/window.cpp @@ -31,6 +31,8 @@ void Window::notifyWindowRename() { } void Window::pushMessage(const char *str, int priority) { + if (messages.size() >= core->maxWindowMessageCount) + messages.pop_front(); messages.push_back(str); bool createdPacket = false; |