From 3138efba25128e405715ee7ce69119eb2fba05ef Mon Sep 17 00:00:00 2001 From: apa420 <17131426+apa420@users.noreply.github.com> Date: Sat, 11 Apr 2020 12:13:38 +0200 Subject: [PATCH] Fixes #1620 (#1627) Fixes #1620 --- src/widgets/helper/ChannelView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 0ef31599b..4fab7a689 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -15,6 +15,7 @@ #include "Application.hpp" #include "common/Common.hpp" #include "controllers/accounts/AccountController.hpp" +#include "controllers/commands/CommandController.hpp" #include "debug/Benchmark.hpp" #include "messages/Emote.hpp" #include "messages/LimitedQueueSnapshot.hpp" @@ -1720,6 +1721,8 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link, .replace("{msg-id}", layout->getMessage()->id) .replace("{message}", layout->getMessage()->messageText); + value = + getApp()->commands->execCommand(value, this->channel_, false); this->channel_->sendMessage(value); } break;