Move some variables into const.hpp

Clean up some code in the AccountManager
This commit is contained in:
Rasmus Karlsson
2017-12-19 16:13:02 +01:00
parent 324dfc9ee9
commit be3c85d72d
7 changed files with 49 additions and 25 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
#include "twitchuser.hpp"
#include "const.hpp"
#include "util/urlfetch.hpp"
namespace chatterino {
@@ -9,7 +10,7 @@ TwitchUser::TwitchUser(const QString &username, const QString &oauthToken,
: IrcUser2(username, username, username, "oauth:" + oauthToken)
, _oauthClient(oauthClient)
, _oauthToken(oauthToken)
, _isAnon(username.startsWith("justinfan"))
, _isAnon(username == ANONYMOUS_USERNAME)
{
}