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,11 +162,13 @@ void TwitchChannel::sendMessage(const QString &message)
return; return;
} }
if (!this->hasModRights()) {
if (app->settings->allowDuplicateMessages) { if (app->settings->allowDuplicateMessages) {
if (parsedMessage == this->lastSentMessage) { if (parsedMessage == this->lastSentMessage) {
parsedMessage.append(this->messageSuffix); parsedMessage.append(this->messageSuffix);
} }
} }
}
bool messageSent = false; bool messageSent = false;
this->sendMessageSignal.invoke(this->name, parsedMessage, messageSent); this->sendMessageSignal.invoke(this->name, parsedMessage, messageSent);