Make structure more consistent with other commands.

This commit is contained in:
LajamerrMittesdine 2018-07-12 15:09:53 -04:00
parent 06497d44b9
commit 96012d5081

View file

@ -180,7 +180,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
auto app = getApp();
auto user = app->accounts->twitch.getCurrent();
auto target = words.at(1);
QString target;
if (words.at(1).at(0) == "@") {
target = words.at(1).mid(1);
@ -207,7 +207,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
auto app = getApp();
auto user = app->accounts->twitch.getCurrent();
auto target = words.at(1);
QString target;
if (words.at(1).at(0) == "@") {
target = words.at(1).mid(1);
@ -234,7 +234,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
auto app = getApp();
auto user = app->accounts->twitch.getCurrent();
auto target = words.at(1);
QString target;
if (words.at(1).at(0) == "@") {
target = words.at(1).mid(1);
@ -269,7 +269,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
auto app = getApp();
auto user = app->accounts->twitch.getCurrent();
auto target = words.at(1);
QString target;
if (words.at(1).at(0) == "@") {
target = words.at(1).mid(1);