actualize online list bug fix

master
const an teen 2022-01-04 11:17:46 -05:00
parent 6471f220fa
commit aaee3a7f9d
1 changed files with 5 additions and 5 deletions

View File

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