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) {