From aaee3a7f9df7e490f53aa0b26bd41d748d98fd16 Mon Sep 17 00:00:00 2001 From: acetone Date: Tue, 4 Jan 2022 11:17:46 -0500 Subject: [PATCH] actualize online list bug fix --- ircclient.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ircclient.cpp b/ircclient.cpp index ad12229..a3ba659 100644 --- a/ircclient.cpp +++ b/ircclient.cpp @@ -10,7 +10,7 @@ const int NICK_RECOVER_TIMER = 60000; // 1 minute const int THREAD_SLEEP_ON_RECONNECT = 3; // seconds -const int USER_LIST_ACTIALIZE = 1800000; // 30 minutes +const int USER_LIST_ACTIALIZE = 5000;// 1800000; // 30 minutes const int WRITING_STOP_TIMER = 1100; // 1.1 second const int PING_TIMEOUT = 361000; // 361 seconds @@ -360,8 +360,8 @@ void IrcClient::pingTimedOut() void IrcClient::actualizeUsersList() { consoleLog("Online list actualize..."); - for (auto channel: m_online) { - write("NAMES " + channel.first); + for (auto channel: m_connectionData.channels) { + write("NAMES " + channel); } } @@ -375,8 +375,8 @@ void IrcClient::nickRecover() void IrcClient::process(const QString &message) { - IrcCode code = getServerCode(message); - QString channel = getChannelName(message); + IrcCode code {getServerCode(message)}; + QString channel {getChannelName(message)}; QString nickname {getNickname(message)}; QString raw {message}; if (code != IrcCode::Failed) {