Implement stupid account manager

After logging in, you need to restart chatterino
This commit is contained in:
Rasmus Karlsson
2017-07-28 19:46:53 +02:00
parent 1296aac245
commit 467ca90fd8
8 changed files with 176 additions and 7 deletions
+3
View File
@@ -68,6 +68,9 @@ Communi::IrcConnection *IrcManager::createConnection(bool doRead)
QString username = _account.getUserName();
QString oauthClient = _account.getOAuthClient();
QString oauthToken = _account.getOAuthToken();
if (!oauthToken.startsWith("oauth:")) {
oauthToken.prepend("oauth:");
}
connection->setUserName(username);
connection->setNickName(username);