Add feedback to incorrect usage of the /w command and the /whispers split (#3477)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
qooq69
2022-01-15 12:50:03 +01:00
committed by GitHub
parent ffc69a83ff
commit d2fffdaceb
2 changed files with 14 additions and 0 deletions
@@ -933,6 +933,11 @@ QString CommandController::execCommand(const QString &textNoEmoji,
appendWhisperMessageWordsLocally(words);
sendWhisperMessage(text);
}
else
{
channel->addMessage(
makeSystemMessage("Usage: /w <username> <message>"));
}
return "";
}
@@ -980,6 +985,13 @@ QString CommandController::execCommand(const QString &textNoEmoji,
}
}
if (!dryRun && channel->getType() == Channel::Type::TwitchWhispers)
{
channel->addMessage(
makeSystemMessage("Use /w <username> <message> to whisper"));
return "";
}
return text;
}