Added description when typing /follow (#606)

* Added description when typing /follow

* syntax fix of 1364e0e707
This commit is contained in:
apa420 2018-07-12 18:57:11 +02:00 committed by fourtf
parent 9dda0a05fa
commit fb0cdf78cb

View file

@ -206,7 +206,11 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
});
return "";
} else if (commandName == "/follow" && words.size() >= 2) {
} else if (commandName == "/follow") {
if (words.size() < 2) {
channel->addMessage(Message::createSystemMessage("Usage: /follow [user]"));
return "";
}
auto app = getApp();
auto user = app->accounts->twitch.getCurrent();
@ -231,7 +235,11 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
});
return "";
} else if (commandName == "/unfollow" && words.size() >= 2) {
} else if (commandName == "/unfollow") {
if (words.size() < 2) {
channel->addMessage(Message::createSystemMessage("Usage: /unfollow [user]"));
return "";
}
auto app = getApp();
auto user = app->accounts->twitch.getCurrent();