mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Make structure more consistent with other commands.
This commit is contained in:
parent
06497d44b9
commit
96012d5081
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue