From ebc47b1463295b8b645fa7d204d4d041008cdf4b Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 7 Jul 2018 22:00:23 +0200 Subject: [PATCH] trim config shit --- src/providers/twitch/TwitchAccountManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/twitch/TwitchAccountManager.cpp b/src/providers/twitch/TwitchAccountManager.cpp index c2daeddda..2f177a146 100644 --- a/src/providers/twitch/TwitchAccountManager.cpp +++ b/src/providers/twitch/TwitchAccountManager.cpp @@ -85,10 +85,10 @@ void TwitchAccountManager::reloadUsers() continue; } - userData.username = qS(username); - userData.userID = qS(userID); - userData.clientID = qS(clientID); - userData.oauthToken = qS(oauthToken); + userData.username = qS(username).trimmed(); + userData.userID = qS(userID).trimmed(); + userData.clientID = qS(clientID).trimmed(); + userData.oauthToken = qS(oauthToken).trimmed(); switch (this->addUser(userData)) { case AddUserResponse::UserAlreadyExists: {