From f7b91442105623b62025cd33d80fade866153477 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sun, 24 Jun 2018 10:53:12 +0200 Subject: [PATCH] added timestamp and disabled pings for inline sent whispers --- src/controllers/commands/commandcontroller.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/controllers/commands/commandcontroller.cpp b/src/controllers/commands/commandcontroller.cpp index 8bcfe645a..6815d8fda 100644 --- a/src/controllers/commands/commandcontroller.cpp +++ b/src/controllers/commands/commandcontroller.cpp @@ -111,10 +111,15 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel, messages::MessageBuilder b; + b.emplace(); b.emplace(app->accounts->twitch.getCurrent()->getUserName(), - messages::MessageElement::Text); + messages::MessageElement::Text, + messages::MessageColor::Text, + FontStyle::ChatMediumBold); b.emplace("->", messages::MessageElement::Text); - b.emplace(words[1], messages::MessageElement::Text); + b.emplace(words[1] + ":", messages::MessageElement::Text, + messages::MessageColor::Text, + FontStyle::ChatMediumBold); QString rest = ""; @@ -123,6 +128,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel, } b.emplace(rest, messages::MessageElement::Text); + b.getMessage()->flags |= messages::Message::DoNotTriggerNotification; app->twitch.server->whispersChannel->addMessage(b.getMessage());