Try to improve Twitch IRC network stability (#2347)

This commit is contained in:
pajlada
2021-01-09 18:05:02 +01:00
committed by GitHub
parent d0deb44abf
commit b3e01a40d7
5 changed files with 49 additions and 8 deletions
+12
View File
@@ -165,6 +165,12 @@ void TwitchIrcServer::readConnectionMessageReceived(
{
handler.handleWhisperMessage(message);
}
else if (command == "RECONNECT")
{
this->addGlobalSystemMessage(
"Twitch Servers requested us to reconnect, reconnecting");
this->connect();
}
}
void TwitchIrcServer::writeConnectionMessageReceived(
@@ -207,6 +213,12 @@ void TwitchIrcServer::writeConnectionMessageReceived(
handler.handleNoticeMessage(
static_cast<Communi::IrcNoticeMessage *>(message));
}
else if (command == "RECONNECT")
{
this->addGlobalSystemMessage(
"Twitch Servers requested us to reconnect, reconnecting");
this->connect();
}
}
void TwitchIrcServer::onReadConnected(IrcConnection *connection)