more random refactoring
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -20,6 +20,7 @@ public:
|
||||
private:
|
||||
QString _oauthClient;
|
||||
QString _oauthToken;
|
||||
bool _isAnon;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
|
||||
Reference in New Issue
Block a user