Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chatters recursion not working #4114

Merged
merged 1 commit into from Nov 5, 2022
Merged

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Nov 5, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Can be tested & verified with the /test-chatters command

Can be tested & verified with the `/test-chatters` command
@pajlada
Copy link
Member Author

pajlada commented Nov 5, 2022

Looks good to me

image

@pajlada pajlada enabled auto-merge (squash) November 5, 2022 11:42
@pajlada pajlada merged commit 2ec26f5 into master Nov 5, 2022
@pajlada pajlada deleted the chore/fix-chatters-recursion branch November 5, 2022 11:56
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

auto formatError = [](HelixGetChattersError error, QString message) {
using Error = HelixGetChattersError;
auto formatChattersError = [](HelixGetChattersError error,
QString message) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: the parameter 'message' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]

Suggested change
QString message) {
const QString& message) {


auto twitchChannel = dynamic_cast<TwitchChannel *>(channel.get());
this->registerCommand(
"/chatters", [formatChattersError](const auto &words, auto channel) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'words' is unused [misc-unused-parameters]

Suggested change
"/chatters", [formatChattersError](const auto &words, auto channel) {
"/chatters", [formatChattersError](const auto & /*words*/, auto channel) {

src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
src/providers/twitch/api/Helix.cpp Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant