From 86222976ad3bb2fbc730cf8ea9032d8b815d847d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82?= Date: Mon, 30 Aug 2021 21:41:10 +0200 Subject: [PATCH] Added /raw command (#3189) It makes it possible to send raw data to write connection Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/controllers/commands/CommandController.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c5b2d99..5d6b9738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Minor: Added the ability to open an entire tab as a popup. (#3082) - Minor: Added optional parameter to /usercard command for opening a usercard in a different channel context. (#3172) - Minor: Added regex option to Nicknames. (#3146) +- Minor: Added `/raw` command. (#3189) - Minor: Colorizing usernames on IRC, originally made for Mm2PL/dankerino (#3206) - Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166) diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index 82beac03..14090f58 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -797,6 +797,11 @@ void CommandController::initialize(Settings &, Paths &paths) return ""; }); + + this->registerCommand("/raw", [](const QStringList &words, ChannelPtr) { + getApp()->twitch2->sendRawMessage(words.mid(1).join(" ")); + return ""; + }); } void CommandController::save()