mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Only send REQ-messages on read connection
This commit is contained in:
parent
1a428a54d5
commit
6a5d4d49ee
|
@ -76,9 +76,12 @@ Communi::IrcConnection *IrcManager::createConnection(bool doRead)
|
||||||
|
|
||||||
this->refreshTwitchEmotes(username, oauthClient, oauthToken);
|
this->refreshTwitchEmotes(username, oauthClient, oauthToken);
|
||||||
|
|
||||||
connection->sendCommand(Communi::IrcCommand::createCapability("REQ", "twitch.tv/membership"));
|
if (doRead) {
|
||||||
|
connection->sendCommand(
|
||||||
|
Communi::IrcCommand::createCapability("REQ", "twitch.tv/membership"));
|
||||||
connection->sendCommand(Communi::IrcCommand::createCapability("REQ", "twitch.tv/commands"));
|
connection->sendCommand(Communi::IrcCommand::createCapability("REQ", "twitch.tv/commands"));
|
||||||
connection->sendCommand(Communi::IrcCommand::createCapability("REQ", "twitch.tv/tags"));
|
connection->sendCommand(Communi::IrcCommand::createCapability("REQ", "twitch.tv/tags"));
|
||||||
|
}
|
||||||
|
|
||||||
connection->setHost("irc.chat.twitch.tv");
|
connection->setHost("irc.chat.twitch.tv");
|
||||||
connection->setPort(6667);
|
connection->setPort(6667);
|
||||||
|
|
Loading…
Reference in a new issue