mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added description when typing /follow
This commit is contained in:
parent
1d2e56f19d
commit
1364e0e707
|
@ -206,7 +206,11 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
|
||||||
});
|
});
|
||||||
|
|
||||||
return "";
|
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 app = getApp();
|
||||||
|
|
||||||
auto user = app->accounts->twitch.getCurrent();
|
auto user = app->accounts->twitch.getCurrent();
|
||||||
|
@ -231,7 +235,11 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
|
||||||
});
|
});
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
} else if (commandName == "/unfollow" && words.size() >= 2) {
|
} else if (commandName == "/unfollow") {
|
||||||
|
if (words.size() < 2) {
|
||||||
|
channel->addMessage(Message::createSystemMessage("Usage: /follow [user]"));
|
||||||
|
return "";
|
||||||
|
}
|
||||||
auto app = getApp();
|
auto app = getApp();
|
||||||
|
|
||||||
auto user = app->accounts->twitch.getCurrent();
|
auto user = app->accounts->twitch.getCurrent();
|
||||||
|
|
Loading…
Reference in a new issue