From 96012d5081d003e1b328de0ff3b5515df7009d5a Mon Sep 17 00:00:00 2001 From: LajamerrMittesdine Date: Thu, 12 Jul 2018 15:09:53 -0400 Subject: [PATCH] Make structure more consistent with other commands. --- src/controllers/commands/CommandController.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index 505985986..c5b586da9 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -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);