diff --git a/src/controllers/commands/commandcontroller.cpp b/src/controllers/commands/commandcontroller.cpp index 734f2dcb9..8bcfe645a 100644 --- a/src/controllers/commands/commandcontroller.cpp +++ b/src/controllers/commands/commandcontroller.cpp @@ -8,6 +8,7 @@ #include "providers/twitch/twitchchannel.hpp" #include "providers/twitch/twitchserver.hpp" #include "singletons/pathmanager.hpp" +#include "singletons/settingsmanager.hpp" #include "util/signalvector2.hpp" #include @@ -126,6 +127,12 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel, app->twitch.server->whispersChannel->addMessage(b.getMessage()); app->twitch.server->getWriteConnection()->sendRaw("PRIVMSG #jtv :" + text + "\r\n"); + + if (app->settings->inlineWhispers) { + app->twitch.server->forEachChannel( + [&b](ChannelPtr _channel) { _channel->addMessage(b.getMessage()); }); + } + return ""; } }