Try to improve Twitch IRC network stability (#2347)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user