From e6dae40d067eb120bd40d4851e71fd69eee66932 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 25 Jul 2022 15:26:45 +0200 Subject: [PATCH 1/5] Drop connections that didn't recently reply to a PING. --- src/app/bufferproxymodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/bufferproxymodel.cpp b/src/app/bufferproxymodel.cpp index 6c6c5c1..091e154 100644 --- a/src/app/bufferproxymodel.cpp +++ b/src/app/bufferproxymodel.cpp @@ -36,6 +36,7 @@ #include #include #include +#include IRC_USE_NAMESPACE @@ -154,6 +155,9 @@ void BufferProxyModel::insertConnection(int index, IrcConnection* connection) connect(model, &IrcBufferModel::aboutToBeAdded, this, &BufferProxyModel::bufferAboutToBeAdded); connect(model, &IrcBufferModel::aboutToBeRemoved, this, &BufferProxyModel::bufferAboutToBeRemoved); + IrcLagTimer* lag = new IrcLagTimer(model); + lag->setConnection(connection, true); + ZncManager* znc = new ZncManager(model); znc->setModel(model); From a37f5b7fc9157e665eb4c37875a4d655de3cfecb Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 25 Jul 2022 15:43:40 +0200 Subject: [PATCH 2/5] Point the libcommuni submodule at the corresponding fork. --- .gitmodules | 4 ++-- src/backend | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index b58b195..78a158d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "src/backend"] path = src/backend - url = https://github.com/communi/libcommuni.git + url = https://github.com/mornfall/libcommuni [submodule "src/shared"] path = src/shared - url = https://github.com/communi/communi-shared.git \ No newline at end of file + url = https://github.com/communi/communi-shared.git diff --git a/src/backend b/src/backend index d1625e5..efc2ba0 160000 --- a/src/backend +++ b/src/backend @@ -1 +1 @@ -Subproject commit d1625e5d667503df3ee2ddd156f2ad6d7ed3f1a2 +Subproject commit efc2ba0fe21b171d4131cb5a00cef77d0eba850a From 7aaa3630faa6d4ddfeb02e5d113efe46a19f5966 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Sun, 7 Aug 2022 05:46:46 +0200 Subject: [PATCH 3/5] Update libcommuni. --- src/backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend b/src/backend index efc2ba0..2da343e 160000 --- a/src/backend +++ b/src/backend @@ -1 +1 @@ -Subproject commit efc2ba0fe21b171d4131cb5a00cef77d0eba850a +Subproject commit 2da343e343be1f39e4f0bcb887ab62c077fa6624 From a09c989aad114b944b9625f353d33612d341a377 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Sun, 7 Aug 2022 06:41:56 +0200 Subject: [PATCH 4/5] Request all capabilities supported by libcommuni. --- src/app/bufferproxymodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/bufferproxymodel.cpp b/src/app/bufferproxymodel.cpp index 091e154..40755f9 100644 --- a/src/app/bufferproxymodel.cpp +++ b/src/app/bufferproxymodel.cpp @@ -148,6 +148,8 @@ void BufferProxyModel::addConnection(IrcConnection* connection) void BufferProxyModel::insertConnection(int index, IrcConnection* connection) { + connection->network()->setRequestedCapabilities(Irc::supportedCapabilities()); + IrcBufferModel* model = new IrcBufferModel(connection); model->setSortMethod(static_cast(m_method)); connect(model, &IrcBufferModel::added, this, &BufferProxyModel::bufferAdded); From 1af2bf695307ef8247de9c95fef7240ef549fa3c Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Sun, 7 Aug 2022 06:42:45 +0200 Subject: [PATCH 5/5] Update libcommuni. --- src/backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend b/src/backend index 2da343e..13b6a84 160000 --- a/src/backend +++ b/src/backend @@ -1 +1 @@ -Subproject commit 2da343e343be1f39e4f0bcb887ab62c077fa6624 +Subproject commit 13b6a84a1212e6a39b042d83f31ffdddabf71500