diff --git a/CHANGELOG.md b/CHANGELOG.md index 16609e949..575e78c42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Minor: Remove sending part of the multipart emoji workaround (#4361) - Minor: Added crashpad to capture crashes on Windows locally. See PR for build/crash analysis instructions. (#4351) - Minor: Added channel name to /mentions log entries (#4371) +- Bugfix: Fixed User Card moderation actions not working after Twitch IRC chat command deprecation. (#4378) - Bugfix: Fixed crash that would occur when performing certain actions after removing all tabs. (#4271) - Bugfix: Fixed highlight sounds not reloading on change properly. (#4194) - Bugfix: Fixed CTRL + C not working in reply thread popups. (#4209) diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index de3586870..ed002225a 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -5,6 +5,7 @@ #include "common/NetworkRequest.hpp" #include "common/QLogging.hpp" #include "controllers/accounts/AccountController.hpp" +#include "controllers/commands/CommandController.hpp" #include "controllers/highlights/HighlightBlacklistUser.hpp" #include "controllers/hotkeys/HotkeyController.hpp" #include "messages/Message.hpp" @@ -223,6 +224,10 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent, .arg(this->userName_) .arg(calculateTimeoutDuration(button)); } + + msg = getApp()->commands->execCommand( + msg, this->underlyingChannel_, false); + this->underlyingChannel_->sendMessage(msg); return ""; }}, @@ -478,25 +483,35 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent, case TimeoutWidget::Ban: { if (this->underlyingChannel_) { - this->underlyingChannel_->sendMessage("/ban " + - this->userName_); + QString value = "/ban " + this->userName_; + value = getApp()->commands->execCommand( + value, this->underlyingChannel_, false); + + this->underlyingChannel_->sendMessage(value); } } break; case TimeoutWidget::Unban: { if (this->underlyingChannel_) { - this->underlyingChannel_->sendMessage("/unban " + - this->userName_); + QString value = "/unban " + this->userName_; + value = getApp()->commands->execCommand( + value, this->underlyingChannel_, false); + + this->underlyingChannel_->sendMessage(value); } } break; case TimeoutWidget::Timeout: { if (this->underlyingChannel_) { - this->underlyingChannel_->sendMessage( - "/timeout " + this->userName_ + " " + - QString::number(arg)); + QString value = "/timeout " + this->userName_ + " " + + QString::number(arg); + + value = getApp()->commands->execCommand( + value, this->underlyingChannel_, false); + + this->underlyingChannel_->sendMessage(value); } } break;