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

Use BagdeKind::VIP in Privmsg::is_vip instead of BagdeKind::Broadcaster #236

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

Lakelezz
Copy link
Contributor

@Lakelezz Lakelezz commented Mar 29, 2021

Description

Privmsg::is_vip used to check for BadgeKind::Broadcaster, but is_vip describes to whether the message is sent by Twitch Channel VIP. It closes #232.

Type of Change

This change fixes the prior incorrect behaviour of Privmsg::is_vip by now checking for BadgeKind::VIP instead. The behaviour change is a fix and therefore stable.

How Has This Been Tested?

Before, messages by VIPs of a Twitch Channel would cause msg.is_vip() to evaluate to false, while I expected true. Once the code change was applied, the expression evaluated to true for VIPs and false for users without the VIP badge.

@halzy halzy merged commit 8832305 into museun:master Nov 7, 2022
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.

Privmsg::is_vip() incorrectly returns if the user is the broadcaster.
2 participants