more random refactoring

This commit is contained in:
Rasmus Karlsson
2017-06-11 12:00:53 +02:00
parent 1d6f558452
commit 4bfe58f14d
6 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ SharedMessage TwitchMessageBuilder::parse(const Communi::IrcPrivateMessage *ircM
displayName + (hasLocalizedName ? (" (" + ircMessage->account() + ")") : QString());
if (args.isSentWhisper) {
userDisplayString += IrcManager::getInstance().getUser().getUserName() + " -> ";
userDisplayString += IrcManager::getInstance().getUser().getUserName();
}
if (args.isReceivedWhisper) {
+4 -3
View File
@@ -8,22 +8,23 @@ TwitchUser::TwitchUser(const QString &username, const QString &oauthToken,
: IrcUser2(username, username, username, "oauth:" + oauthToken)
, _oauthClient(oauthClient)
, _oauthToken(oauthToken)
, _isAnon(username.startsWith("justinfan"))
{
}
const QString &TwitchUser::getOAuthClient() const
{
return _oauthClient;
return this->_oauthClient;
}
const QString &TwitchUser::getOAuthToken() const
{
return _oauthToken;
return this->_oauthToken;
}
bool TwitchUser::isAnon() const
{
return IrcUser2::getNickName().startsWith("justinfan");
return this->_isAnon;
}
} // namespace twitch
+1
View File
@@ -20,6 +20,7 @@ public:
private:
QString _oauthClient;
QString _oauthToken;
bool _isAnon;
};
} // namespace twitch