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.
Description
Privmsg::is_vip
used to check forBadgeKind::Broadcaster
, butis_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 forBadgeKind::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 tofalse
, while I expectedtrue
. Once the code change was applied, the expression evaluated totrue
for VIPs andfalse
for users without the VIP badge.