Only use the "duplicate message" functionality if user is not a

moderator
This commit is contained in:
Rasmus Karlsson 2018-06-24 15:20:15 +00:00
parent 715d208b6d
commit 8bb3ad1bf5

View file

@ -162,9 +162,11 @@ void TwitchChannel::sendMessage(const QString &message)
return; return;
} }
if (app->settings->allowDuplicateMessages) { if (!this->hasModRights()) {
if (parsedMessage == this->lastSentMessage) { if (app->settings->allowDuplicateMessages) {
parsedMessage.append(this->messageSuffix); if (parsedMessage == this->lastSentMessage) {
parsedMessage.append(this->messageSuffix);
}
} }
} }