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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -45,6 +45,8 @@
- Minor: Add search to emote popup. (#3404) - Minor: Add search to emote popup. (#3404)
- Minor: Messages can now be highlighted by subscriber or founder badges. (#3445) - Minor: Messages can now be highlighted by subscriber or founder badges. (#3445)
- Minor: Add workaround for multipart emoji as described in [the RFC](https://mm2pl.github.io/emoji_rfc.pdf). (#3469) - Minor: Add workaround for multipart emoji as described in [the RFC](https://mm2pl.github.io/emoji_rfc.pdf). (#3469)
- Minor: Add feedback when using the whisper command `/w` incorrectly. (#3439)
- Minor: Add feedback when writing a non-command message in the `/whispers` split. (#3439)
- Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362) - Bugfix: Fix Split Input hotkeys not being available when input is hidden (#3362)
- Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Fixed colored usernames sometimes not working. (#3170)
- Bugfix: Restored ability to send duplicate `/me` messages. (#3166) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166)

View file

@ -933,6 +933,11 @@ QString CommandController::execCommand(const QString &textNoEmoji,
appendWhisperMessageWordsLocally(words); appendWhisperMessageWordsLocally(words);
sendWhisperMessage(text); sendWhisperMessage(text);
} }
else
{
channel->addMessage(
makeSystemMessage("Usage: /w <username> <message>"));
}
return ""; 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; return text;
} }