Update Usage messages to conform to new Usage message contributor guidelines (#3180)
This commit is contained in:
@@ -296,7 +296,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
auto blockLambda = [](const auto &words, auto channel) {
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(makeSystemMessage("Usage: /block [user]"));
|
||||
channel->addMessage(makeSystemMessage("Usage: /block <user>"));
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -341,7 +341,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
auto unblockLambda = [](const auto &words, auto channel) {
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(makeSystemMessage("Usage: /unblock [user]"));
|
||||
channel->addMessage(makeSystemMessage("Usage: /unblock <user>"));
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -455,7 +455,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(
|
||||
makeSystemMessage("Usage /user [user] (channel)"));
|
||||
makeSystemMessage("Usage: /user <user> [channel]"));
|
||||
return "";
|
||||
}
|
||||
QString userName = words[1];
|
||||
@@ -625,7 +625,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
(!channel->isTwitchChannel() || channel->isEmpty()))
|
||||
{
|
||||
channel->addMessage(makeSystemMessage(
|
||||
"Usage: /streamlink [channel]. You can also use the "
|
||||
"Usage: /streamlink <channel>. You can also use the "
|
||||
"command without arguments in any Twitch channel to open "
|
||||
"it in streamlink."));
|
||||
return "";
|
||||
@@ -646,7 +646,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
(!channel->isTwitchChannel() || channel->isEmpty()))
|
||||
{
|
||||
channel->addMessage(makeSystemMessage(
|
||||
"Usage: /popout [channel]. You can also use the command "
|
||||
"Usage: /popout <channel>. You can also use the command "
|
||||
"without arguments in any Twitch channel to open its "
|
||||
"popout chat."));
|
||||
return "";
|
||||
@@ -673,7 +673,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(
|
||||
makeSystemMessage("Usage: /settitle <stream title>."));
|
||||
makeSystemMessage("Usage: /settitle <stream title>"));
|
||||
return "";
|
||||
}
|
||||
if (auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
|
||||
@@ -704,7 +704,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(
|
||||
makeSystemMessage("Usage: /setgame <stream game>."));
|
||||
makeSystemMessage("Usage: /setgame <stream game>"));
|
||||
return "";
|
||||
}
|
||||
if (auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
|
||||
@@ -769,7 +769,7 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
const ChannelPtr channel) {
|
||||
if (words.size() < 2)
|
||||
{
|
||||
channel->addMessage(makeSystemMessage("Usage: /openurl <URL>."));
|
||||
channel->addMessage(makeSystemMessage("Usage: /openurl <URL>"));
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -810,8 +810,7 @@ void IrcMessageHandler::handleNoticeMessage(Communi::IrcNoticeMessage *message)
|
||||
if (tags == "bad_delete_message_error" || tags == "usage_delete")
|
||||
{
|
||||
channel->addMessage(makeSystemMessage(
|
||||
"Usage: \"/delete <msg-id>\" - can't take more "
|
||||
"than one argument"));
|
||||
"Usage: /delete <msg-id>. Can't take more than one argument"));
|
||||
}
|
||||
else if (tags == "host_on" || tags == "host_target_went_offline")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user