From 44f1013eb591d664262dfe06104355df472cd05a Mon Sep 17 00:00:00 2001 From: Felanbird <41973452+Felanbird@users.noreply.github.com> Date: Sat, 4 Sep 2021 08:04:21 -0400 Subject: [PATCH] Strip leading @ and trailing , from username in /popout command (#3217) * popout command could use some love too * changelog * forward slash is sorry for force push * copied the old changelog too literally that I misplaced it * apparently i didn't save the changelog change --- CHANGELOG.md | 1 + src/controllers/commands/CommandController.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e243c73e7..f786fe8e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Minor: Added regex option to Nicknames. (#3146) - Minor: Added `/raw` command. (#3189) - Minor: Colorizing usernames on IRC, originally made for Mm2PL/dankerino (#3206) +- Minor: Strip leading @ and trailing , from username in `/popout` command. (#3217) - Bugfix: Fixed colored usernames sometimes not working. (#3170) - Bugfix: Restored ability to send duplicate `/me` messages. (#3166) - Bugfix: Notifications for moderators about other moderators deleting messages can now be disabled. (#3121) diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index 14090f58d..3cd5da09f 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -652,6 +652,7 @@ void CommandController::initialize(Settings &, Paths &paths) return ""; } + stripChannelName(target); QDesktopServices::openUrl( QUrl(QString("https://www.twitch.tv/popout/%1/chat?popout=") .arg(target)));