Skip to content

Commit

Permalink
Merge pull request #236 from Lakelezz/fix-vip-badge
Browse files Browse the repository at this point in the history
Use `BagdeKind::VIP` in `Privmsg::is_vip` instead of `BagdeKind::Broadcaster`
  • Loading branch information
halzy authored Nov 7, 2022
2 parents 6292ca3 + 78c667d commit 8832305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/privmsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl<'a> Privmsg<'a> {

/// Whether the user sending this message was a vip
pub fn is_vip(&self) -> bool {
self.contains_badge(BadgeKind::Broadcaster)
self.contains_badge(BadgeKind::VIP)
}

/// Whether the user sending this message was a susbcriber
Expand Down

0 comments on commit 8832305

Please sign in to comment.