Show sent whispers inline

This commit is contained in:
datguy 2018-06-23 16:14:10 +03:00 committed by fourtf
parent 942217fd6a
commit 88ef3ef07a

View file

@ -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 <QApplication>
@ -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 "";
}
}